메인 콘텐츠로 건너뛰기
POST
/
bria
/
text-to-image
Generate Bria images
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"
    }
  ]
}
일반 텍스트 프롬프트만으로 상업적으로 안전한 이미지를 생성하세요. CometAPI에서 첫 요청을 보낼 때는 prompt를 전송하고, num_results1로 유지하며, 최종 레이아웃이 이미 정해져 있지 않다면 aspect_ratio: "1:1"로 시작하세요.

이 경로를 사용하는 경우

  • 한 번의 호출로 완성된 이미지를 원할 때
  • 마스크, 이미지 입력 또는 작업 폴링이 필요하지 않을 때
  • CometAPI를 통해 더 쉽게 운영할 수 있는 포토리얼리스틱 Bria 경로를 원할 때

이 요청으로 시작하세요

  • 프롬프트는 짧고 구체적으로 유지하세요
  • 첫 스모크 테스트에는 num_results: 1을 사용하세요
  • 대상 레이아웃이 이미 고정되어 있지 않다면 aspect_ratio: "1:1"로 시작하세요
  • 장기간 보관이 필요하다면 반환된 URL을 즉시 다운로드하세요

CometAPI에서의 응답 동작

Bria의 공식 문서는 더 넓은 생성 파이프라인을 설명하고 비동기 상태 흐름도 다룹니다. CometAPI에서는 이 경로가 단순화된 JSON 요청을 사용하며, 현재 스모크 테스트에서는 request_idstatus_url을 함께 반환하는 대신 최종 result 배열을 즉시 반환했습니다.
CometAPI는 Bria의 공개 API를 필드 단위로 그대로 반영하는 것이 아니라 Bria 기능을 프록시합니다. 통합 시에는 이 페이지의 API 레퍼런스와 Playground에 표시된 요청 및 응답 형태를 기준으로 사용하세요.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

본문

application/json
prompt
string
필수

English text prompt for image generation.

예시:

"A paper boat floating on calm water at sunrise."

num_results
integer
기본값:1

Number of images to generate. Use 1 for the simplest integration test.

aspect_ratio
enum<string>
기본값:1:1

Requested output aspect ratio.

사용 가능한 옵션:
1:1,
2:3,
3:2,
3:4,
4:3,
4:5,
5:4,
9:16,
16:9
seed
integer

Optional seed for reproducible results.

negative_prompt
string

Optional exclusions for the generated image.

steps_num
integer
기본값:30

Optional refinement step count.

text_guidance_scale
integer
기본값:5

Optional prompt adherence setting.

medium
enum<string>

Optional visual medium.

사용 가능한 옵션:
photography,
art
prompt_enhancement
boolean
기본값:false

Optional prompt enhancement switch.

enhance_image
boolean
기본값:false

Optional image detail enhancement switch.

prompt_content_moderation
boolean
기본값:false

Optional moderation switch.

ip_signal
boolean
기본값:false

Optional IP warning flag.

sync
boolean
기본값:false

Optional sync hint. Current CometAPI smoke tests returned final results immediately without setting this field.

응답

200 - application/json

Image generation result.

result
object[]
필수