Documentation Index
Fetch the complete documentation index at: https://docs.apimart.ai/llms.txt
Use this file to discover all available pages before exploring further.
クイックスタート
APIサービスへようこそ!このガイドでは、画像と動画生成を素早く始める方法を説明します。
ステップ1:APIキーを取得する
- APIキー管理ページにアクセス
- アカウントにサインインする
- 新しいAPIキーを作成する
- キーを安全に保存する(一度だけ表示されます)
ステップ2:モデルを選択する
複数のAIモデルから選択できます。
テキスト生成モデル
- GPT-4o: 強力な対話とテキスト生成機能
- Claude: Anthropicの高性能な対話モデル
- Gemini: Googleのマルチモーダル大規模言語モデル
画像生成モデル
動画生成モデル
ステップ3:リクエストを送信する
テキスト生成の例
curl -X POST https://api.apimart.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": "こんにちは、自己紹介をしてください"
}
]
}'
画像生成の例
curl -X POST https://api.apimart.ai/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-image",
"prompt": "A cute panda",
"size": "1:1",
"n": 1
}'
動画生成の例
curl -X POST https://api.apimart.ai/v1/videos/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2",
"prompt": "Waves crashing against the shore",
"duration": 15,
"aspect_ratio": "16:9"
}'
ステップ4:タスクのステータスを確認する
非同期処理を使用しているため、タスクのステータスを照会して結果を取得する必要があります。
curl -X GET https://api.apimart.ai/v1/tasks/YOUR_TASK_ID \
-H "Authorization: Bearer YOUR_API_KEY"
次のステップ
APIドキュメントを見る
利用可能なすべてのAPIエンドポイントについて詳しく学ぶ。
開発ガイド
アプリケーションにAPIを統合する方法を学ぶ。