Image · Alibaba

Qwen 2 API

Alibaba의 비주얼 모델 패밀리로부터 텍스트-이미지, 이미지 리믹스, 이미지 편집을 위한 Qwen 2 API 액세스.

운영 중 · 3 variants · 최저 $0.040
runapi.ai
curl -X POST https://runapi.ai/api/v1/qwen_2/edit_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen-2-text-to-image",
  "image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
  "prompt": "따뜻한 조명과 책상 위에 식물이 있는 아늑한 홈 오피스의 아이소메트릭 일러스트레이션을 생성해 주세요."
}'
import { Qwen2Client } from "@runapi.ai/qwen-2";

const client = new Qwen2Client();
const result = await client.editImage.run({
    model: "qwen-2-text-to-image",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    prompt: "따뜻한 조명과 책상 위에 식물이 있는 아늑한 홈 오피스의 아이소메트릭 일러스트레이션을 생성해 주세요.",
});
<?php

require __DIR__ . "/vendor/autoload.php";

use RunApi\Qwen2\Qwen2Client;

$client = new Qwen2Client();
$result = $client->editImage->run([
        'model' => 'qwen-2-text-to-image',
        'image_url' => 'https://cdn.runapi.ai/public/samples/image.jpg',
        'prompt' => '따뜻한 조명과 책상 위에 식물이 있는 아늑한 홈 오피스의 아이소메트릭 일러스트레이션을 생성해 주세요.',
]);
require "runapi/qwen_2"

client = RunApi::Qwen2::Client.new
result = client.edit_image.run(
    model: "qwen-2-text-to-image",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    prompt: "따뜻한 조명과 책상 위에 식물이 있는 아늑한 홈 오피스의 아이소메트릭 일러스트레이션을 생성해 주세요."
)
npx skills add runapi-ai/qwen-2 -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp

# Codex
codex plugin install runapi-mcp@agents

# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
@runapi.ai/qwen-2 v1
개요

Qwen 2는 텍스트-이미지, 이미지 리믹스, 이미지 편집을 지원하는 Alibaba의 시각 생성 모델입니다. Tongyi Wanxiang 기반을 토대로 강력한 언어-시각 정렬로 상세한 출력물을 제공합니다.

  • 품질과 지연 시간 목표에 맞춘 모델 변형
  • 통합 API key
  • Model skill에 docs, schema, 설정 메모 포함
  • 실패한 생성은 과금되지 않습니다
변형

변형

Variant Billing From
qwen-2-edit-image call $0.060 보기 →
qwen-2-remix-image call $0.040 보기 →
qwen-2-text-to-image call $0.060 보기 →
MODELS

앱 개발을 위해 Qwen 2 skill 설치

모델 docs, schema, 가격 메모, 설정 단계를 코딩 워크스페이스로 불러옵니다.

# Install the model skill for app development workflows
npx skills add runapi-ai/qwen-2 -g
Installs docs, schemas, pricing context, and setup notes into your developer workspace.
Or use this setup request in your coding tool:
Install the Qwen 2 skill for this app:

1. Add runapi-ai/qwen-2 with the skills installer.
2. Load SKILL.md in this workspace.
3. Use its docs, schemas, pricing notes, and setup steps when adding model features.
4. Confirm the install path when done.
작동 방식

이 model skill로 구현하는 방법

01

모델 선택

출력 유형, 품질 기준, 지연 시간 목표에 맞는 모델과 변형을 고릅니다.

02

한 번 인증

모든 지원 모델에 RunAPI key를 사용합니다.

03

skill 설치

기능을 구현하기 전에 코딩 워크스페이스에 model skill을 추가합니다.

04

결과 받기

task ID로 조회하거나 생성 완료 시 callback을 처리합니다.

컨텍스트

Qwen 2의 위치

Qwen 2는 이미지 생성 및 편집을 지원하는 Qwen 패밀리의 Alibaba 비주얼 모델입니다. RunAPI를 통해 모든 Qwen 2 엔드포인트가 통합 과금 및 API 액세스를 공유합니다.

Provider
Alibaba
Modality
Image
RUNAPI를 선택하는 이유

RunAPI로 Qwen 2을 쓰는 이유

하나의 API key

모델과 제공사를 넘나들며 같은 인증 정보를 사용합니다.

Skill-ready

model skill에 schema, 설정 메모, 가격 컨텍스트, 모델 ID가 포함됩니다.

예측 가능한 과금

호출 전에 사용량 기반 가격을 확인할 수 있습니다.

FAQ

자주 묻는 질문

이 모델은 어떻게 호출하나요?

model skill을 설치하고 RunAPI key와 함께 설정 메모를 따르세요.

실패한 생성도 비용이 드나요?

실패한 생성은 과금되지 않습니다

애플리케이션에서 호출할 수 있나요?

네. 코딩 워크스페이스에 model skill을 설치하고 모델 기능을 추가할 때 사용하세요.

지금 시작

Qwen 2로 개발을 시작하세요.