POST
/
images
/
generations
curl --request POST \
  --url https://api.siliconflow.cn/v1/images/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "deepseek-ai/Janus-Pro-7B",
  "prompt": "an island near sea, with seagulls, moon shining over the sea, light house, boats int he background, fish flying over the sea",
  "seed": 4999999999
}'
{
  "images": [
    {
      "url": "<string>"
    }
  ],
  "timings": {
    "inference": 123
  },
  "seed": 123
}

Authorizations

Authorization
string
header
required

Use the following format for authentication: Bearer <your api key>

Body

application/json
model
enum<string>
default:
deepseek-ai/Janus-Pro-7B
required

对应的模型名称。为更好的提升服务质量,我们将不定期对本服务提供的模型做相关变更,包括但不限于模型上下线,价格调整,模型服务能力调整等,我们会在可行的情况下以公告、消息推送等适当的方式进行通知。该模型默认出图为 384*384 分辨率。

Available options:
deepseek-ai/Janus-Pro-7B
prompt
string
default:
an island near sea, with seagulls, moon shining over the sea, light house, boats int he background, fish flying over the sea
required

提示词

seed
integer

随机种子

Required range: 0 < x < 9999999999

Response

200
application/json
200
images
object[]
timings
object
seed
integer