> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudsome-inc.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 画像生成

APIキーを使用して POST /v1/images/generations を呼び出します。model は「モデル」ページに表示される画像生成モデルIDに置き換えてください。

```bash theme={null}
curl https://api.cloudsome-inc.ai/v1/images/generations \
  -H "Authorization: Bearer sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_IMAGE_MODEL_ID",
    "prompt": "A futuristic city floating above a sea of clouds",
    "n": 1,
    "resolution": "1080P",
    "ratio": "1:1",
    "response_format": "url"
  }'
```

主なパラメーター：model と prompt は必須です。n は生成枚数、resolution と ratio は出力サイズを制御し、response\_format では url または b64\_json を選択できます。

> 選択したモデルのアップストリームAPIが対応する追加パラメーターも指定できます。パラメーター名、値、制限はモデルごとに異なるため、そのモデルのアップストリームプロバイダーの原文ドキュメントを参照してください。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.