Flux Create (OpenAI DALL-E 3 Format)

[图片](https://platform.openai.com/docs/api-reference/images) 给定提示 and / or 输入图像, models将生成新图像. 相关指南: [图像生成](https://platform.openai.com/docs/guides/images) according to提示创建图像.

Endpoint

POST http://v98store.com/v1/images/generations

cURL Command

curl -X POST 'http://v98store.com/v1/images/generations' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '"{\n \"model\": \"flux-kontext-pro\",\n \"prompt\": \"a beautiful landscape with a river and mountains\",\n // \"size\": \"1024x1524\",\n \"n\": 1,\n \"aspect_ratio\": \"21:9\"\n}"'

Parameters

NameInDescriptionRequired
AuthorizationheaderNo

Request Body

Example

"{\n \"model\": \"flux-kontext-pro\",\n \"prompt\": \"a beautiful landscape with a river and mountains\",\n // \"size\": \"1024x1524\",\n \"n\": 1,\n \"aspect_ratio\": \"21:9\"\n}"

Responses

200 -

Example

{
  "created": 1589478378,
  "data": [
    {
      "url": "https://..."
    },
    {
      "url": "https://..."
    }
  ]
}