Source: https://ailoot.ai/models/ko/wan2-7-image/
Canonical: https://ailoot.ai/models/ko/wan2-7-image/
Language: ko

# wan2.7-image

[Markdown](https://ailoot.ai/models/ko/wan2-7-image/index.md) · [JSON](https://ailoot.ai/models/ko/wan2-7-image/facts.json)

## [wan2.7-image](https://ailoot.ai/models/ko/wan2-7-image/)

텍스트를 바탕으로 디자인 시안과 일러스트를 만드는 이미지 생성 모델입니다. Alibaba에 따르면 이 버전은 더 빠른 이미지 생성에 초점을 맞춥니다.

- [**Ailoot · 이미지** `POST /v1/images/generations` `wan2.7-image`](https://ailoot.ai/models/ko/wan2-7-image/#method-0)

모델 소개

이 설명은 모델의 기능을 다룹니다. Ailoot에서 사용할 수 있는 입력, 출력 및 옵션은 아래에 선택한 메서드별로 표시됩니다.

Wan2.7-Image는 텍스트 지시에 따라 이미지를 만듭니다. 현재 Ailoot 카드에 표시된 것은 텍스트 입력과 이미지 결과입니다. Alibaba에 따르면 이 버전은 여러 시안을 더 빠르게 얻는 데 초점을 맞춥니다. 개발사 사양에는 편집, 참고 이미지 결합, 부분 변경도 있지만, 이러한 기능에는 현재 카드의 호출 방식에 포함되지 않은 별도의 입력 이미지 지원이 필요합니다.

#### Alibaba가 설명한 모드

참고 이미지 모드에서 Alibaba는 지시에 원본 이미지 최대 9개를 사용할 수 있도록 합니다. 대상의 외형, 구도, 세부 요소를 정하는 기반으로 쓰입니다. 모델은 여러 자료를 새로운 장면으로 결합하거나 주요 대상을 유지하면서 원본 이미지를 바꿀 수 있습니다. 세밀한 부분 편집을 위해 명시적으로 표시한 영역을 사용할 수 있으며, 이미지 하나에 직사각형 영역을 최대 두 개 지정할 수 있습니다.

Alibaba 사양에서 일반 모드는 결과물 1~4개를 생성합니다. 연속 시리즈에서는 이야기나 캐릭터의 공통 특징으로 연결된 이미지를 최대 12개 요청할 수 있습니다. 시리즈에서 이 수치는 상한입니다. 모델이 필요한 프레임 수를 직접 결정하므로 더 적게 반환할 수 있습니다. 지시와 원본 자료는 공통 줄거리를 유지하는 데 도움이 됩니다.

참고 이미지와 연속 시리즈를 사용하지 않는 일반적인 텍스트 기반 이미지 생성에는 추론 모드가 있습니다. 이미지를 만들기 전에 복잡한 설명을 더 자세히 분석합니다. 이미지 기반 편집과 연속 시리즈에는 이 모드가 적용되지 않습니다. 3~10개 색상의 지정 팔레트는 연속 시리즈 이외의 모드에서 사용할 수 있습니다.

#### 입력과 결과

원본 이미지를 사용하는 개발사 모드에서는 JPEG, JPG, 투명도가 없는 PNG, BMP, WEBP를 지원합니다. 각 변은 240~8000픽셀, 파일 크기는 최대 20MB, 화면 비율은 1:8~8:1입니다.

텍스트 지시는 중국어와 영어를 지원하며 5000자로 제한됩니다. 초과한 부분은 잘립니다. 이 버전은 부정 지시문과 추가 프롬프트 확장을 제공하지 않습니다.

출력 형식은 PNG이며 해상도는 최대 2K 수준입니다. 이 표기는 고정된 최대 변 길이가 아니라 전체 픽셀 면적을 뜻합니다. 화면 비율은 1:8~8:1 범위에서 선택할 수 있습니다. 미리 정한 해상도로 편집하면 결과물은 마지막 참고 이미지의 화면 비율을 유지합니다. 같은 초기 난수 시드는 비슷한 결과를 얻는 데 도움이 되지만 완전한 일치를 보장하지는 않습니다.

**Ailoot · 이미지** `POST /v1/images/generations` `wan2.7-image`

[`wan2.7-image`](https://ailoot.ai/models/ko/#m=wan2.7-image&route=Core&caller=wan2.7-image&fmt=images)

Alibaba /`wan2.7-image`

### 시작하기

텍스트를 바탕으로 디자인 시안과 일러스트를 만드는 이미지 생성 모델입니다. Alibaba에 따르면 이 버전은 더 빠른 이미지 생성에 초점을 맞춥니다.

허용 입력

텍스트

결과

이미지

### Ailoot에서 사용 가능 · 입력 및 메서드

**Ailoot · 이미지** `POST /v1/images/generations`

입력

`text`

출력

`image`

출력 형식

이미지 파일

| 필드 | 유형 | 요건 | 값과 한도 | 기본값 |
| --- | --- | --- | --- | --- |
| 필드`model` | 유형`string` | 요건필수 | 값과 한도 wan2.7-image | 기본값— |
| 필드`prompt` | 유형`string` | 요건필수 | 값과 한도 최소 길이: 1 | 기본값— |
| 필드`n` | 유형`integer` | 요건선택 사항 | 값과 한도 최솟값: 1 | 기본값1 |
| 필드`response_format` | 유형`string` | 요건선택 사항 | 값과 한도 url, b64\_json | 기본값— |
| 필드`stream` | 유형`boolean` | 요건선택 사항 | 값과 한도 | 기본값false |
| 필드`size` | 유형`string` | 요건선택 사항 | 값과 한도 모델에 따라 다름 | 기본값— |
| 필드`partial_images` | 유형`integer` | 요건선택 사항 | 값과 한도 모델에 따라 다름 | 기본값— |
| 필드`images[].image_url` | 유형`string` | 요건지원되지 않음 | 값과 한도 디코딩 후 최대 바이트 수: 20,971,520 MIME 유형: image/png, image/jpeg 배열당 최대 이미지 수: 9 조건: images\[\] 객체마다 실제 URL 하나를 사용합니다. 배열 항목 수와 이 문자열 말단 값은 서로 다릅니다. 적용 조건: JSON images/edits만 해당합니다. JSON images/generations는 images 참조 자료를 파싱하지 않습니다. | 기본값— |
| 필드`image` | 유형`file` | 요건선택 사항 | 값과 한도 디코딩 후 최대 바이트 수: 20,971,520 MIME 유형: image/png, image/jpeg 적용 조건: multipart/form-data 생성 | 기본값— |
| 필드`image[]` | 유형`file[]` | 요건선택 사항 | 값과 한도 최대 항목 수: 9 디코딩 후 최대 바이트 수: 20,971,520 MIME 유형: image/png, image/jpeg 적용 조건: multipart/form-data 생성 | 기본값— |

입력 자료 조합

**텍스트로 이미지 생성** · 필수: prompt

**reference\_images\_generation** · 필수: prompt

메서드 매개변수와 수명 주기

| 매개변수 | 명세 |
| --- | --- |
| 매개변수`material_types` | 명세text |
| 매개변수`required` | 명세model, prompt |
| 매개변수`optional_controls` | 명세null |
| 매개변수`content_type` | 명세application/json |

수명 주기: `synchronous_result_then_owned_library`

`GET /v1/media/tasks/{task_id}` · 실제로 반환된 task\_id 또는 미디어 라이브러리 기록

`GET /v1/media/assets/{asset_id}/content`

`GET /v1/media/assets`

`GET /v1/media/assets/{asset_id}`

메서드 형식과 ID는 정확합니다. 공급자의 기능 지원과 요청 수락은 별개입니다.

### 요금

#### Ailoot 메서드 요금

출력

US$0.03 *1K 이미지당*

출력

US$0.03 *2K 이미지당*

Ailoot는 요청 전에 예상 금액을 미리 확보합니다. 결과를 받은 뒤 측정된 사용량을 기준으로 최종 요금을 정산합니다. 스트리밍 정산에는 최종 사용량 기록을 사용합니다. [금액 확보와 정산 방식 →](https://ailoot.ai/docs/ko/billing/reserve/)

#### 참조 요금 상세 정보

모델 수준의 참조 요금표는 메서드 선택, 견적 또는 요금을 변경하지 않습니다. 실제 과금에는 선택한 Ailoot 메서드 요금이 적용됩니다.

wan2.7-image

#### 설정별 가격

| 설정 | 과금 조건 | 요금 |
| --- | --- | --- |
| 설정wan2.7-image · 기본 설정 | 과금 조건기본 설정 | 요금 입력 · 입력 **US$0.00** 호출당 출력 · 출력 **US$0.06** 호출당 |

### 요청 예제

#### Ailoot · 이미지

curlPython SDKNode.js SDK

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
export AILOOT_API_KEY
: "${AILOOT_PROMPT_FILE:?Set your actual UTF-8 image brief}"
export AILOOT_PROMPT_FILE
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "wan2.7-image", "prompt": ""}')
f=Path(os.environ["AILOOT_PROMPT_FILE"])
if not f.is_file():raise SystemExit("Choose your actual UTF-8 brief")
p['prompt']=f.read_text(encoding="utf-8")
if not p['prompt'].strip():raise SystemExit("Brief must contain text")
Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/images/generations \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
python3 - <<'PY_RESULT'
import base64, json, os, subprocess
from pathlib import Path
from urllib.parse import urlsplit, urljoin

def save_images(items):
    if not items: raise SystemExit("No completed images; retain the full response")
    for index, item in enumerate(items):
        encoded=item.get("b64_json")
        uri=item.get("url", "")
        if not encoded and uri.startswith("data:image/"):
            header, separator, encoded=uri.partition(",")
            if not separator or ";base64" not in header: raise SystemExit("Unsupported image data URI")
        if encoded:
            raw=base64.b64decode(encoded,validate=True)
        elif uri:
            uri=urljoin("https://api.ailoot.ai",uri)
            parsed=urlsplit(uri)
            if parsed.scheme!="https" or not parsed.netloc or parsed.username or parsed.password:
                raise SystemExit("Invalid returned image URL")
            owned=parsed.netloc=="api.ailoot.ai" and parsed.path.startswith("/v1/media/assets/") and parsed.path.endswith("/content")
            args=["curl","--fail-with-body","--silent","--show-error",uri]
            if owned: args += ["-H","Authorization: Bearer "+os.environ["AILOOT_API_KEY"]]
            temporary=Path(f"image-{index}.bin")
            subprocess.run(args+["-o",str(temporary)],check=True)
            raw=temporary.read_bytes()
            temporary.unlink()
        else: raise SystemExit("Image has neither bytes nor URL")
        if not raw: raise SystemExit("Empty image result")
        ext="png" if raw.startswith(b"\x89PNG") else "jpg" if raw.startswith(b"\xff\xd8") else "webp" if raw[:4]==b"RIFF" and raw[8:12]==b"WEBP" else "svg" if raw.lstrip().startswith((b"<svg",b"<?xml")) else "bin"
        Path(f"image-{index}.{ext}").write_bytes(raw)
    print("Every returned image saved; complete response metadata retained")
save_images(json.loads(Path("result.json").read_text())["data"])
PY_RESULT
```

```python
from openai import OpenAI
import base64, json, os, subprocess
from pathlib import Path
from urllib.parse import urlsplit, urljoin

def save_images(items):
    if not items: raise SystemExit("No completed images; retain the full response")
    for index, item in enumerate(items):
        encoded=item.get("b64_json")
        uri=item.get("url", "")
        if not encoded and uri.startswith("data:image/"):
            header, separator, encoded=uri.partition(",")
            if not separator or ";base64" not in header: raise SystemExit("Unsupported image data URI")
        if encoded:
            raw=base64.b64decode(encoded,validate=True)
        elif uri:
            uri=urljoin("https://api.ailoot.ai",uri)
            parsed=urlsplit(uri)
            if parsed.scheme!="https" or not parsed.netloc or parsed.username or parsed.password:
                raise SystemExit("Invalid returned image URL")
            owned=parsed.netloc=="api.ailoot.ai" and parsed.path.startswith("/v1/media/assets/") and parsed.path.endswith("/content")
            args=["curl","--fail-with-body","--silent","--show-error",uri]
            if owned: args += ["-H","Authorization: Bearer "+os.environ["AILOOT_API_KEY"]]
            temporary=Path(f"image-{index}.bin")
            subprocess.run(args+["-o",str(temporary)],check=True)
            raw=temporary.read_bytes()
            temporary.unlink()
        else: raise SystemExit("Image has neither bytes nor URL")
        if not raw: raise SystemExit("Empty image result")
        ext="png" if raw.startswith(b"\x89PNG") else "jpg" if raw.startswith(b"\xff\xd8") else "webp" if raw[:4]==b"RIFF" and raw[8:12]==b"WEBP" else "svg" if raw.lstrip().startswith((b"<svg",b"<?xml")) else "bin"
        Path(f"image-{index}.{ext}").write_bytes(raw)
    print("Every returned image saved; complete response metadata retained")

f=Path(os.environ["AILOOT_PROMPT_FILE"])
if not f.is_file():raise SystemExit("Set your actual UTF-8 image brief file")
request={'model': 'wan2.7-image', 'prompt': ''}
request["prompt"]=f.read_text(encoding="utf-8")
client=OpenAI(base_url="https://api.ailoot.ai/v1",api_key=os.environ["AILOOT_API_KEY"],max_retries=0)
result=client.images.generate(**request)
Path("sdk-result.txt").write_text(str(result),encoding="utf-8")
save_images([{"b64_json":getattr(item,"b64_json",None),"url":getattr(item,"url",None)} for item in result.data])
```

```js
import OpenAI from "openai";
import { readFileSync, writeFileSync } from "node:fs";
const key=process.env.AILOOT_API_KEY;
if(!key) throw new Error("Set your actual Ailoot API key");
const client=new OpenAI({baseURL:"https://api.ailoot.ai/v1",apiKey:key,maxRetries:0});
const request={"model": "wan2.7-image", "prompt": ""};
if(!process.env.AILOOT_PROMPT_FILE)throw new Error("Set your actual UTF-8 image brief file");
request.prompt=readFileSync(process.env.AILOOT_PROMPT_FILE,"utf8");
const result=await client.images.generate(request);
writeFileSync("sdk-result.json",JSON.stringify(result,null,2));
if(!result.data?.length) throw new Error("No completed images");
for(let index=0;index<result.data.length;index++) {
  const item=result.data[index];let encoded=item.b64_json,uri=item.url||"",raw;
  if(!encoded && uri.startsWith("data:image/")) {
    const comma=uri.indexOf(",");if(comma<0 || !uri.slice(0,comma).includes(";base64")) throw new Error("Unsupported image data URI");
    encoded=uri.slice(comma+1);
  }
  if(encoded) {
    if(encoded.length%4!==0 || !/^[A-Za-z0-9+/]*={0,2}$/.test(encoded)) throw new Error("Invalid Base64");
    raw=Buffer.from(encoded,"base64");
  } else if(uri) {
    const u=new URL(uri,"https://api.ailoot.ai");
    if(u.protocol!=="https:" || u.username || u.password) throw new Error("Invalid returned URL");
    const owned=u.origin==="https://api.ailoot.ai" && u.pathname.startsWith("/v1/media/assets/") && u.pathname.endsWith("/content");
    const response=await fetch(u,{headers:owned?{Authorization:"Bearer "+key}:{},redirect:"manual"});
    if(!response.ok) throw new Error("Image content download failed: "+response.status);
    raw=Buffer.from(await response.arrayBuffer());
  } else throw new Error("Image has neither bytes nor URL");
  if(!raw.length) throw new Error("Empty image result");
  const ext=raw.subarray(0,4).equals(Buffer.from([137,80,78,71]))?"png":raw[0]===255&&raw[1]===216?"jpg":raw.toString("ascii",0,4)==="RIFF"&&raw.toString("ascii",8,12)==="WEBP"?"webp":raw.toString("utf8").trimStart().startsWith("<svg")||raw.toString("utf8").trimStart().startsWith("<?xml")?"svg":"bin";
  writeFileSync(`image-${index}.${ext}`,raw);
}
console.log("Every returned image saved; sdk-result.json retains complete metadata");
```

### 결과 수신 및 저장

#### Ailoot · 이미지

반환된 각 이미지를 다운로드하거나 Base64 내용을 저장하세요

- `GET /v1/media/tasks/{task_id}`
- `GET /v1/media/assets/{asset_id}/content`
- `GET /v1/media/assets`
- `GET /v1/media/assets/{asset_id}`

##### 완료된 결과 모두 보관

완료된 이미지를 모두 저장하세요. 반환된 각 URL에서 가져오거나 Base64 내용을 디코딩하세요.

모든 데이터 항목을 저장하세요. 각 b64\_json을 디코딩하거나 반환된 모든 서명된 URL에서 가져오세요. 실제 MIME/바이트에 따라 파일 확장자를 선택하세요.

##### 원래 응답을 확인해야 할 경우

이미지 생성 또는 편집 결과를 확인해야 하는 경우 최초 operation\_id/X-Client-Request-ID와 반환된 결과 정보를 보관하세요. 실제 task\_id 또는 asset\_id 값으로 미디어 라이브러리에서 기존의 소유한 결과를 복구하세요. 생성/편집 요청을 다시 제출하거나 operation\_id로 폴링 URL을 구성하지 마세요.

응답 필드

| 필드 | 유형 |
| --- | --- |
| 필드`created` | 유형integer |
| 필드`data[].url` | 유형string |
| 필드`data[].b64_json` | 유형base64 string |
| 필드`usage` | 유형object |

오류와 다음 단계

| 응답 | 조건 | 다음 단계 |
| --- | --- | --- |
| 응답400 · `invalid_request_error` | 조건필수 필드, 자료 표현 방식 또는 파라미터 값이 올바르지 않음 | 다음 단계새 생성 요청 전에 표시된 필드를 수정하세요. |
| 응답`server_error` | 조건반환된 응답에 작업 또는 결과 확인이 필요하다고 표시되어 있습니다 | 다음 단계최초로 반환된 작업/태스크 ID, 요청 헤더와 응답을 보관하고, 지원되는 조회 방식으로 해당 최초 작업을 계속 조회하세요. 생성 요청을 다시 제출하지 마세요. |

### 별칭

#### 모델 별칭

**Ailoot** [`wan2.7-image`](https://ailoot.ai/models/ko/#m=wan2.7-image&route=Core&caller=wan2.7-image&fmt=images)

#### 메서드 경로 별칭

위에 표시된 메서드 경로를 사용하세요.

#### 관련 호출용 ID

[`wan2.7-image`](https://ailoot.ai/models/ko/#m=wan2.7-image&route=Core&caller=wan2.7-image&fmt=images)

FAQ · wan2.7-image

어떤 입력과 결과를 사용할 수 있나요?

`POST /v1/images/generations` · `wan2.7-image`: `text` → `image`

요청은 어떤 필드를 사용하나요?

`POST /v1/images/generations` · `wan2.7-image`: `model`, `prompt`, `n`, `response_format`, `stream`, `image`, `image[]`

어떤 제한이 적용되나요?

`POST /v1/images/generations` · `wan2.7-image`: `n.minimum`: `1`

Claude Code, OpenCode, Hermes, 자체 앱에 Ailoot를 연결하세요.

## 회사와 그 프로젝트 포트폴리오

회사와 그 프로젝트 포트폴리오: 수백만 고객, 매월 수십억 규모의 매출.

## 할인받아 토큰을 구매하세요.

정기 작업에는 구독 할인, 토큰 구매에는 최대 50% 프로모션 코드.

구독

정기 요청에 맞는 할인 요금제를 선택하세요.

최대 50% 프로모션 코드

구매할 때 코드를 넣으면 진행 중 행사에 따라 가격을 다시 계산합니다.

이력의 지출

요청마다 모델, 토큰, 금액을 저장합니다.

[구독 선택](https://ailoot.ai/docs/ko/billing/subscriptions/) · [모델 가격 보기](https://ailoot.ai/models/ko/)

## 판매하는 제품에 API를 연결하세요.

Ailoot 공식 이용 조건과 라이선스 계약으로 SaaS, 앱, 봇에 사용하세요. 재판매에는 리셀러 라이선스를 요청하세요.

상업용 앱

서비스의 유료 기능에 텍스트, 이미지, 영상, 소리 생성을 넣으세요.

리셀러 라이선스

프로젝트 설명과 접근 구조를 보내 사용·재판매의 서면 조건을 요청하세요.

사이트의 문서

연결 전에 공식 이용 조건, 라이선스 계약, 데이터 처리 정책을 읽을 수 있습니다.

[리셀러 라이선스 요청](mailto:support@ailoot.ai) · [공식 이용 조건과 라이선스 계약](https://ailoot.ai/legal/offer?lang=ko)

## Ailoot · 회사와 그 프로젝트 포트폴리오





Ailoot는 축적된 운영 경험, 폭넓은 고객 기반, 안정적인 서비스, 지속적인 KPI 관리를 바탕으로 합니다.





회사와 그 프로젝트 포트폴리오: 수백만 고객, 매월 수십억 규모의 매출.





Ailoot는 이러한 운영 경험을 고객의 제품, 에이전트, 애플리케이션, 자동화에서 AI 기능을 이용할 수 있는 API 접근에 활용합니다.
