CometAPI Bria POST /bria/text-to-image를 사용해 텍스트에서 향상 기능과 유연한 종횡비로 1MP 사실적 이미지를 생성합니다.
curl --request POST \
--url https://api.cometapi.com/bria/text-to-image \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "A paper boat floating on calm water at sunrise."
}
'{
"result": [
{
"urls": [
"https://example.com/generated.png"
],
"seed": 278741175,
"uuid": "27c39b06-1dfe-11f1-ad57-6ac2c454c04d_278741175"
}
]
}일반 텍스트 프롬프트(Prompt)로 상업적으로 안전한 이미지를 생성하세요. CometAPI에서 첫 요청을 보낼 때는Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
prompt를 전송하고, num_results는 1로 유지하며, 이미 필요한 최종 레이아웃을 알고 있지 않다면 aspect_ratio: "1:1"로 시작하세요.
num_results: 1을 사용하세요aspect_ratio: "1:1"로 시작하세요request_id와 status_url을 반환하는 대신 최종 result 배열을 즉시 반환합니다.
Bearer token authentication. Use your CometAPI key.
English text prompt for image generation.
"A paper boat floating on calm water at sunrise."
Number of images to generate. Use 1 for the simplest integration test.
Requested output aspect ratio.
1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9 Optional seed for reproducible results.
Optional exclusions for the generated image.
Optional refinement step count.
Optional prompt adherence setting.
Optional visual medium.
photography, art Optional prompt enhancement switch.
Optional image detail enhancement switch.
Optional moderation switch.
Optional IP warning flag.
Optional sync hint. CometAPI returns final results immediately without setting this field.
Image generation result.
Show child attributes
curl --request POST \
--url https://api.cometapi.com/bria/text-to-image \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "A paper boat floating on calm water at sunrise."
}
'{
"result": [
{
"urls": [
"https://example.com/generated.png"
],
"seed": 278741175,
"uuid": "27c39b06-1dfe-11f1-ad57-6ac2c454c04d_278741175"
}
]
}