---
title: Use Qwen 2 Image in WorkBuddy via RunAPI — API Guide | RunAPI
description: Generate and edit images with Qwen 2 Image in WorkBuddy via the RunAPI MCP server. One API key, multilingual prompts, async tasks handled by the agent.
url: https://runapi.ai/workbuddy-qwen-2.md
canonical: https://runapi.ai/workbuddy-qwen-2
locale: en
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
alternates:
  en: https://runapi.ai/workbuddy-qwen-2
  zh-CN: https://runapi.ai/zh-CN/workbuddy-qwen-2
  es: https://runapi.ai/es/workbuddy-qwen-2
  ja: https://runapi.ai/ja/workbuddy-qwen-2
  de: https://runapi.ai/de/workbuddy-qwen-2
  fr: https://runapi.ai/fr/workbuddy-qwen-2
  pt-BR: https://runapi.ai/pt-BR/workbuddy-qwen-2
  ko: https://runapi.ai/ko/workbuddy-qwen-2
  it: https://runapi.ai/it/workbuddy-qwen-2
  nl: https://runapi.ai/nl/workbuddy-qwen-2
  pl: https://runapi.ai/pl/workbuddy-qwen-2
  tr: https://runapi.ai/tr/workbuddy-qwen-2
  zh-TW: https://runapi.ai/zh-TW/workbuddy-qwen-2
  zh-HK: https://runapi.ai/zh-HK/workbuddy-qwen-2
  ar: https://runapi.ai/ar/workbuddy-qwen-2
  x-default: https://runapi.ai/workbuddy-qwen-2
model: qwen-2
---

> HTML version: https://runapi.ai/workbuddy-qwen-2
> Site index for agents: https://runapi.ai/llms.txt


# Use Qwen 2 Image in WorkBuddy.

Qwen 2 Image is Alibaba's image generation and editing model. WorkBuddy speaks MCP natively — add RunAPI as an MCP server, prompt the workbench agent, and it calls Qwen 2 Image as a tool. Text-to-image and instruction-based editing through two model variants, one API key.

- [Get API Key](https://runapi.ai/login)
- [Read the docs](https://runapi.ai/docs/guides)

one MCP server · one API key · async task handled by the agent

### Prompt

```text
Use the runapi MCP server to generate an image with Qwen 2 Image.

Requirements:
- Call the RunAPI text-to-image tool with model set to "qwen-2-text-to-image".
- Prompt: "A traditional Chinese ink painting of misty mountains at dawn, elegant brushwork".
- Wait until the task completes, then give me the image URL.
- For image editing, use model "qwen-2-edit-image" and include an image_url.

```

### MCP config

```bash
{
  "mcp_servers": {
    "runapi": {
      "url": "https://runapi.ai/mcp",
      "transport": "streamable_http",
      "headers": {
        "Authorization": "Bearer ${RUNAPI_API_KEY}"
      }
    }
  }
}

```

### Result

```json
{
  "task_id": "tsk_abc123",
  "status": "completed",
  "model": "qwen-2-text-to-image",
  "output": {
    "image_url": "https://runapi.ai/files/tsk_abc123.png"
  }
}

```

## Use Qwen 2 Image in WorkBuddy in three steps

1. **Add the RunAPI MCP server** - Register an MCP server named runapi in WorkBuddy pointing at https://runapi.ai/mcp over streamable HTTP, with the Authorization header reading your key from RUNAPI_API_KEY. One server exposes Qwen 2 Image alongside every other RunAPI model. `url: https://runapi.ai/mcp`
2. **Prompt the workbench agent** - Paste the prompt into WorkBuddy. Set the model to qwen-2-text-to-image for generation, or qwen-2-edit-image with an image_url for editing. Prompts can be written in Chinese, English, or mixed-language text. `model: qwen-2-text-to-image`
3. **Let the agent return the result** - The tool call creates an async task and returns a task_id. WorkBuddy waits on your behalf until the status changes to completed, then posts the image URL back into the conversation. `task_id: tsk_abc123`

## Qwen 2 Image API parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `model` | `string` | Required. qwen-2-text-to-image or qwen-2-edit-image. |
| `prompt` | `string` | Text description or editing instruction. |
| `image_url` | `string` | Source image for edit mode. |
| `size` | `string` | Optional. Output dimensions. |
| `callback_url` | `string` | Optional. Webhook URL for async completion notification. |

## What is Qwen 2 Image on WorkBuddy?

Qwen 2 Image is Alibaba's image model for generation and instruction-based editing through RunAPI. It is strong at multilingual prompt understanding (especially Chinese and English), handles complex multi-object scenes well, and supports describing what to change in natural language. In WorkBuddy it appears as a tool on the runapi MCP server, so both generating and editing images become one-sentence requests to the workbench agent.

## Qwen 2 Image use cases

- **Multilingual marketing campaigns** - Generate images from prompts written in Chinese, English, or mixed-language text for bilingual marketing materials — no need to translate the brief before handing it to WorkBuddy.
- **Instruction-based image editing** - Modify existing images by describing the change in plain language — swap backgrounds, add objects, adjust lighting, or remove elements without opening an editor, straight from the workbench chat.
- **Fine-tuning open-weight models for specific domains** - Use Qwen 2 Image outputs as training data or baselines when fine-tuning open-weight Qwen models for domain-specific image tasks like product catalogs or branded content.

## Qwen 2 Image + WorkBuddy questions

### Can I use Qwen 2 Image in WorkBuddy?

Yes. WorkBuddy speaks MCP natively. Add RunAPI as an MCP server pointing at https://runapi.ai/mcp with your RUNAPI_API_KEY, then ask the agent to call the text-to-image tool with model set to qwen-2-text-to-image.

### Do I need a separate API key for Qwen 2 Image?

No. The same RUNAPI_API_KEY behind the runapi MCP server also covers Qwen 2 Image. All RunAPI models share one key and one credits balance.

### How does Qwen 2 compare to other image models for Chinese-language prompts?

Qwen 2 Image has native multilingual support from Alibaba's Qwen architecture, so it understands Chinese prompts without translation. Other models often require English prompts for best results. If your WorkBuddy workflows involve Chinese text or bilingual content, Qwen 2 is a strong choice.

### Is Qwen 2 Image async or sync?

Async. The tool call returns a task ID immediately, and the WorkBuddy agent handles the waiting for you — it returns the finished image URL in the conversation once the task completes.

### What does Qwen 2 Image cost on RunAPI?

Qwen 2 Image uses per-task billing. Check the RunAPI pricing page for current rates. There is no monthly subscription or minimum spend — you pay only for completed generations.


- [WorkBuddy setup guide →](https://runapi.ai/workbuddy.md) - Not connected yet? Start with the RunAPI MCP setup guide for WorkBuddy.
- [Qwen 2 Image models →](https://runapi.ai/models/qwen-2.md) - See all Qwen 2 Image variants, pricing, and API docs.

## Try Qwen 2 Image in WorkBuddy today.

Get a free RunAPI key, add the MCP server to WorkBuddy, and start generating and editing images from the workbench.

[Browse models →](https://runapi.ai/models.md)

---

## More from RunAPI

- [Home](https://runapi.ai/.md)
### Product
- [Model Catalog](https://runapi.ai/models.md)
- [Pricing](https://runapi.ai/pricing.md)
- [Providers](https://runapi.ai/models#all-models)
### Developers
- [Documentation](https://runapi.ai/docs/guides)
- [SDKs](https://runapi.ai/sdk.md)
- [CLI](https://runapi.ai/cli.md)
- [MCP Server](https://runapi.ai/mcp.md)
- [x402](https://runapi.ai/x402.md)
### Guides
- [Claude Code vs Cursor](https://runapi.ai/claude-code-vs-cursor.md)
- [Cursor API Setup](https://runapi.ai/cursor-api-setup.md)
- [RunAPI vs OpenRouter](https://runapi.ai/openrouter-alternative.md)
### Company
- [Enterprise](https://runapi.ai/contact.md)
- [Contact](https://runapi.ai/contact.md)
### Legal
- [Terms](https://runapi.ai/terms.md)
- [Privacy](https://runapi.ai/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/icon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "SoftwareApplication",
    "name": "RunAPI Qwen 2 Image for WorkBuddy",
    "applicationCategory": "DeveloperApplication",
    "description": "Generate and edit images with Qwen 2 Image in WorkBuddy via the RunAPI MCP server. One API key, multilingual prompts, async tasks handled by the agent.",
    "url": "https://runapi.ai/workbuddy-qwen-2"
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "Can I use Qwen 2 Image in WorkBuddy?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Yes. WorkBuddy speaks MCP natively. Add RunAPI as an MCP server pointing at https://runapi.ai/mcp with your RUNAPI_API_KEY, then ask the agent to call the text-to-image tool with model set to qwen-2-text-to-image."
        }
      },
      {
        "@type": "Question",
        "name": "Do I need a separate API key for Qwen 2 Image?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "No. The same RUNAPI_API_KEY behind the runapi MCP server also covers Qwen 2 Image. All RunAPI models share one key and one credits balance."
        }
      },
      {
        "@type": "Question",
        "name": "How does Qwen 2 compare to other image models for Chinese-language prompts?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Qwen 2 Image has native multilingual support from Alibaba's Qwen architecture, so it understands Chinese prompts without translation. Other models often require English prompts for best results. If your WorkBuddy workflows involve Chinese text or bilingual content, Qwen 2 is a strong choice."
        }
      },
      {
        "@type": "Question",
        "name": "Is Qwen 2 Image async or sync?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Async. The tool call returns a task ID immediately, and the WorkBuddy agent handles the waiting for you — it returns the finished image URL in the conversation once the task completes."
        }
      },
      {
        "@type": "Question",
        "name": "What does Qwen 2 Image cost on RunAPI?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Qwen 2 Image uses per-task billing. Check the RunAPI pricing page for current rates. There is no monthly subscription or minimum spend — you pay only for completed generations."
        }
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "HowTo",
    "name": "How to use Qwen 2 Image in WorkBuddy via RunAPI",
    "description": "Add RunAPI as an MCP server in WorkBuddy, then prompt the workbench agent to generate and edit images with Qwen 2 Image through the RunAPI tools.",
    "step": [
      {
        "@type": "HowToStep",
        "position": 1,
        "name": "Add the RunAPI MCP server",
        "text": "Register an MCP server named runapi in WorkBuddy pointing at https://runapi.ai/mcp over streamable HTTP, with the Authorization header reading your key from RUNAPI_API_KEY. One server exposes Qwen 2 Image alongside every other RunAPI model.",
        "url": "https://runapi.ai/workbuddy-qwen-2#how-step-1"
      },
      {
        "@type": "HowToStep",
        "position": 2,
        "name": "Prompt the workbench agent",
        "text": "Paste the prompt into WorkBuddy. Set the model to qwen-2-text-to-image for generation, or qwen-2-edit-image with an image_url for editing. Prompts can be written in Chinese, English, or mixed-language text.",
        "url": "https://runapi.ai/workbuddy-qwen-2#how-step-2"
      },
      {
        "@type": "HowToStep",
        "position": 3,
        "name": "Let the agent return the result",
        "text": "The tool call creates an async task and returns a task_id. WorkBuddy waits on your behalf until the status changes to completed, then posts the image URL back into the conversation.",
        "url": "https://runapi.ai/workbuddy-qwen-2#how-step-3"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "en",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Home",
        "item": "https://runapi.ai/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "RunAPI Qwen 2 Image for WorkBuddy",
        "item": "https://runapi.ai/workbuddy-qwen-2"
      }
    ]
  }
]
```
