> ## 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サービスを素早く始める

# クイックスタート

APIサービスへようこそ！このガイドでは、画像と動画生成を素早く始める方法を説明します。

## ステップ1：APIキーを取得する

1. [APIキー管理ページ](https://apimart.ai/keys)にアクセス

2. アカウントにサインインする

   <Frame>
     <img src="https://mintcdn.com/apicore/C2a2y8XoHfeZvDlX/images/quickstart/login.png?fit=max&auto=format&n=C2a2y8XoHfeZvDlX&q=85&s=4d80617a8e12462f9ab0468ba60f9069" alt="APIMart アカウントにサインイン" width="2000" height="1059" data-path="images/quickstart/login.png" />
   </Frame>

3. 新しいAPIキーを作成する

   APIキーページで、右上の **Create API Key** ボタンをクリックして作成します。

   <Frame>
     <img src="https://mintcdn.com/apicore/C2a2y8XoHfeZvDlX/images/quickstart/create-key.png?fit=max&auto=format&n=C2a2y8XoHfeZvDlX&q=85&s=0b34bed153bced1f6c5498491021c263" alt="APIキーページで Create API Key をクリック" width="2000" height="1052" data-path="images/quickstart/create-key.png" />
   </Frame>

   表示されたフォームでキーの **Name** を入力し、必要に応じて割り当て量（Unlimited Quota）、モデル制限（Enable Model Limits）、IP ホワイトリストを設定して、**Create Key** をクリックします。

   <Frame>
     <img src="https://mintcdn.com/apicore/C2a2y8XoHfeZvDlX/images/quickstart/create-key-form.png?fit=max&auto=format&n=C2a2y8XoHfeZvDlX&q=85&s=fc19cc3fca9c9ed72ba66ce58e1a5923" alt="API Key 作成フォームを入力" width="2000" height="1068" data-path="images/quickstart/create-key-form.png" />
   </Frame>

4. キーを安全に保存する

   <Frame>
     <img src="https://mintcdn.com/apicore/C2a2y8XoHfeZvDlX/images/quickstart/copy-key.png?fit=max&auto=format&n=C2a2y8XoHfeZvDlX&q=85&s=7a508ad3a827ce496abf8946d365ba75" alt="コピーアイコンをクリックして API キーをコピー" width="2000" height="1078" data-path="images/quickstart/copy-key.png" />
   </Frame>

## ステップ2：モデルを選択する

複数のAIモデルから選択できます。[モデルマーケット](https://apimart.ai/ja/model) にアクセスして、利用可能なすべてのモデルと料金を確認できます。

### テキスト生成モデル

* **GPT-4o**: 強力な対話とテキスト生成機能
* **Claude**: Anthropicの高性能な対話モデル
* **Gemini**: Googleのマルチモーダル大規模言語モデル

### 画像生成モデル

* **GPT-4o-image**: 高品質な画像生成

### 動画生成モデル

* **Sora2**: プロフェッショナルな動画生成

## ステップ3：リクエストを送信する

### テキスト生成の例

```bash theme={null}
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": "こんにちは、自己紹介をしてください"
      }
    ]
  }'
```

### 画像生成の例

```bash theme={null}
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
  }'
```

### 動画生成の例

```bash theme={null}
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：タスクのステータスを確認する

非同期処理を使用しているため、タスクのステータスを照会して結果を取得する必要があります。

```bash theme={null}
curl -X GET https://api.apimart.ai/v1/tasks/YOUR_TASK_ID \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## 次のステップ

<Card title="APIドキュメントを見る" icon="book" href="/ja/index">
  利用可能なすべてのAPIエンドポイントについて詳しく学ぶ。
</Card>

<Card title="開発ガイド" icon="code" href="/ja/development">
  アプリケーションにAPIを統合する方法を学ぶ。
</Card>
