> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudsome-inc.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 이미지 생성

API Key를 사용해 POST /v1/images/generations를 호출합니다. model은 「모델」 페이지에 표시된 이미지 생성 모델 ID로 바꾸세요.

```bash theme={null}
curl https://api.cloudsome-inc.ai/v1/images/generations \
  -H "Authorization: Bearer sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "YOUR_IMAGE_MODEL_ID",
    "prompt": "A futuristic city floating above a sea of clouds",
    "n": 1,
    "resolution": "1080P",
    "ratio": "1:1",
    "response_format": "url"
  }'
```

주요 파라미터: model과 prompt는 필수이며, n은 생성 수량을, resolution과 ratio는 출력 크기를 제어합니다. response\_format은 url 또는 b64\_json을 선택합니다.

> 선택한 모델의 업스트림 API가 지원하는 추가 파라미터도 전달할 수 있습니다. 파라미터 이름, 값, 제한은 모델마다 다르므로 해당 모델 업스트림 제공자의 원문 문서를 참고하세요.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.