FocalAPI Docs
API 参考图像创作

生成图像(ark 原生端点)

POST
/api/v3/images/generations

ark/BytePlus 官方路径 /api/v3/images/generations——ark 用户仅需更换 base URL 与 key 即可无缝迁移。请求体与响应结构与官方一致。

Authorization

BearerAuth
AuthorizationBearer <token>

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v3/images/generations" \  -H "Content-Type: application/json" \  -d '{    "model": "dola-seedream-5-0-pro-260628",    "prompt": "晨雾中的海边灯塔,电影感光影",    "size": "2k",    "watermark": false  }'
{  "created": 0,  "data": [    {      "url": "string",      "b64_json": "string",      "revised_prompt": "string"    }  ]}