modelApiDoc_getStartedBeforeModelgoogle/nano-banana-2/text-to-imagemodelApiDoc_getStartedAfterModel modelApiDoc_getStartedMid modelApiDoc_schemaLinkmodelApiDoc_getStartedAfterSchema
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/google/nano-banana-2/text-to-image \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A cinematic close-up portrait of an American woman standing under neon lights in rainy Tokyo, shallow depth of field, reflective wet streets, ultra-detailed, realistic skin texture"
}'modelApiDoc_authP1 YOUR_API_TOKEN modelApiDoc_authP2 modelApiDoc_profilemodelApiDoc_authP3 Authorization modelApiDoc_authP4 Authorization: Bearer $YOUR_API_TOKENmodelApiDoc_authP5
modelApiDoc_submitBody
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/google/nano-banana-2/text-to-image \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A cinematic close-up portrait of an American woman standing under neon lights in rainy Tokyo, shallow depth of field, reflective wet streets, ultra-detailed, realistic skin texture"
}'modelApiDoc_monitorBody
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/status \
--header "Authorization: Bearer <token>"modelApiDoc_retrieveBody
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/result \
--header "Authorization: Bearer <token>"modelApiDoc_cancelBody
curl --request POST \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/cancel \
--header "Authorization: Bearer <token>"modelApiDoc_hostedFileBody
{
"type": "object",
"title": "modelApiDoc_navInputSchema",
"required": [
"prompt"
],
"properties": {
"prompt": {
"title": "提示词",
"description": "用于图像生成的提示词。",
"type": "string",
"default": "A cinematic close-up portrait of an American woman standing under neon lights in rainy Tokyo, shallow depth of field, reflective wet streets, ultra-detailed, realistic skin texture"
},
"num_images": {
"title": "生成数量",
"description": "要生成的图像数量。",
"type": "integer",
"default": 1,
"minimum": 1,
"maximum": 4
},
"seed": {
"title": "种子",
"description": "随机数生成器的种子值。",
"type": "integer",
"default": 0
},
"aspect_ratio": {
"title": "宽高比(宽:高)",
"description": "生成图像的宽高比。",
"type": "string",
"enum": [
"auto",
"21:9",
"16:9",
"3:2",
"4:3",
"5:4",
"1:1",
"4:5",
"3:4",
"2:3",
"9:16"
],
"default": "auto"
},
"resolution": {
"title": "分辨率",
"description": "生成图像的分辨率。",
"type": "string",
"enum": [
"0.5K",
"1K",
"2K",
"4K"
],
"default": "1K"
},
"output_format": {
"title": "输出格式",
"description": "生成图像的格式。",
"type": "string",
"enum": [
"jpeg",
"png",
"webp"
],
"default": "png"
},
"safety_tolerance": {
"title": "安全容忍度",
"description": "内容审核的安全容忍度等级。1 为最严格,6 为最宽松。",
"type": "integer",
"enum": [
1,
2,
3,
4,
5,
6
],
"default": 4
},
"limit_generations": {
"title": "限制生成次数",
"description": "设为 true 时,每轮提示词仅限一次生成。",
"type": "boolean",
"default": true
},
"enable_web_search": {
"title": "启用网络搜索",
"description": "启用网络搜索,以在生成时获取最新信息。",
"type": "boolean",
"default": false
}
}
}{
"output": {
"type": "object",
"properties": {
"image": {
"type": "string",
"format": "uri",
"description": "modelApiDoc_outDescImage"
},
"video": {
"type": "string",
"format": "uri",
"description": "modelApiDoc_outDescVideo"
},
"images": {
"type": "array",
"description": "modelApiDoc_outDescImages",
"items": {
"type": "string",
"format": "uri"
}
},
"videos": {
"type": "array",
"description": "modelApiDoc_outDescVideos",
"items": {
"type": "string",
"format": "uri"
}
}
}
}
}RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.