TenZenTenzen AI
API ReferenceAI Model APIImagesQwen

Generate Images

Bailian qwen-image series image generation

POST/v1/images/generations

以下为根据 OpenAPI Schema 自动生成的模拟请求参数,用于对照下方参数说明与右侧示例;不会发起真实请求。

{
  "method": "POST",
  "url": "https://api.tenzen.ai/v1/images/generations",
  "headers": {
    "Content-Type": "application/json"
  },
  "body": {
    "model": "string",
    "input": {
      "messages": [
        {}
      ]
    }
  }
}

Authorization

BearerAuth

AuthorizationBearer <token>

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

In: header

Request Body

application/json

model*string
input*
parameters?

Response Body

application/json

curl -X POST "https://api.tenzen.ai/v1/images/generations" \  -H "Content-Type: application/json" \  -d '{    "model": "string",    "input": {      "messages": [        {}      ]    }  }'
{
  "created": 0,
  "data": [
    {
      "url": "string",
      "b64_json": "string",
      "revised_prompt": "string"
    }
  ]
}