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

# POST /v1/images/generations

> 图片生成接口。

## 用途

用于根据文本提示词生成图片。

## 请求

* Method: `POST`
* URL: `https://api.hubto.ai/v1/images/generations`
* Auth: `Authorization: Bearer YOUR_API_KEY`
* Content-Type: `application/json`

## 最小请求体

```json theme={null}
{
  "model": "gpt-image-1",
  "prompt": "一张未来感的 AI 控制台界面"
}
```

## 请求示例

```bash theme={null}
curl https://api.hubto.ai/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gpt-image-1",
    "prompt": "一张未来感的 AI 控制台界面"
  }'
```

## 返回

成功时返回图片结果，通常包含 URL 或 base64 数据。
