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

# Image Generations 生图接口

> OpenAI 兼容的标准生图接口，支持指定分辨率与多图生成

### 请求参数

<ParamField body="model" type="string" required>
  模型标识符，如 `gemini-3-pro-image-preview`、`doubao-seedream-5-0-pro-260628`、`gpt-image-2`。
</ParamField>

<ParamField body="prompt" type="string" required>
  生图提示词。
</ParamField>

<ParamField body="size" type="string" default="1024x1024">
  分辨率尺寸，如 `1024x1024` (1K)、`2048x2048` (2K)、`4096x4096` (4K)。
</ParamField>

***

### 请求示例

```bash theme={null}
curl https://api.socialvision.tisyk.xyz/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-sv-YOUR_API_KEY" \
  -d '{
    "model": "gemini-3-pro-image-preview",
    "prompt": "Cyberpunk metropolis at night, neon lights reflection in rain, cinematic lighting, 8k",
    "size": "2048x2048"
  }'
```
