> ## 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.

# Image Generation

Use your API key to call POST /v1/images/generations. Replace model with the image model ID shown on the Models page.

```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"
  }'
```

Common parameters: model and prompt are required; n controls the number of images; resolution and ratio control the output dimensions; response\_format selects url or b64\_json output.

> You may also send additional parameters supported by the selected model's upstream API. Parameter names, values, and limits vary by model; refer to the original documentation from that model's upstream provider.


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