跳转到主要内容
POST
/
v3
/
gpt-image-2-light-text-to-image
GPT Image 2 Light 文生图
curl --request POST \
  --url https://api.highwayapi.ai/v3/gpt-image-2-light-text-to-image \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "size": "<string>",
  "prompt": "<string>",
  "background": "<string>",
  "moderation": "<string>"
}
'
{
  "images": [
    {}
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.jiekou.ai/llms.txt

Use this file to discover all available pages before exploring further.

GPT Image 2 Light 文生图 API,按输出分辨率计费。

请求头

Content-Type
string
必填
枚举值: application/json
Authorization
string
必填
Bearer 身份验证格式: Bearer {{API 密钥}}。

请求体

size
string
默认值:"1024x1024"
输出图片尺寸。系统会根据该分辨率匹配计费 SKU。可选值:1024x1024, 1024x1536, 1536x1024, 2048x2048, 2048x1152, 1152x2048, 3840x2160, 2160x3840
prompt
string
必填
描述要创建的图片内容。
background
string
默认值:"auto"
输出图片背景模式。可选值:opaque, auto
moderation
string
默认值:"auto"
生成模式下的内容审核强度。可选值:auto, low

响应信息

images
array
生成后的图片 URL 列表。