lfzgvaqci0occqg / qwenimage3.0-qwen-image-3.0-gateway
git clone https://github.com/lfzgvaqci0occqg/qwenimage3.0-qwen-image-3.0-gateway.git
qwen-image-3.0 API (qwenimage3.0 / qwen image 3.0): default $0.0206; 1K $0.0206; 2K $0.0206. Model id, gateway settings, curl and Python examples over an OpenAI-compatible gateway,
—
stars, 24h
—
stars, 7 days
+75
stars, 30 days · #2,977
75
★ total
0
forks · 0 open issues
Star history starts 2026-10-20; the chart appears after the second daily snapshot.
LanguagePython
License—
Created2026-09-24 (26d ago)
Last pushtoday
Watchers0
OwnerUser
GitHub topics
api-docsapimartgatewayopenai-compatiblepay-as-you-goper-image-pricingqwen-image-3-0qwen-image-3-0-apiqwen-image-3-0-gatewayqwenimage3-0qwenimage3-0-apitext-to-image
Links
- GitHub: github.com/lfzgvaqci0occqg/qwenimage3.0-qwen-image-3.0-gateway
- Homepage: https://go.apimart.ai/k-29e72d
- Releases · Issues · Hacker News mentions
README excerpt
# Qwen-Image 3.0 API (`qwen-image-3.0`)
> **from $0.0205712 per image** (1K $0.0205712 · 2K $0.0205712) — one OpenAI-compatible endpoint at `https://api.apimart.ai/v1`, no monthly plan required. *(observed 2026-10-12)*
**Get an API key** · **Live pricing** · **Model page** · ⚡ 60-second quickstart
**Why teams call Qwen-Image 3.0 (`qwen-image-3.0`) through APIMart**
- **One key, entire catalog.** The same `https://api.apimart.ai/v1` base URL and `Authorization` header reach Qwen-Image 3.0 (`qwen-image-3.0`) and 300+ other image, video and language models — switch the `model` field, not your client.
- **$1 minimum, pay as you go.** No subscription and no prepaid plan to size up front: top up from $1 and spend it on calls.
- **The charge comes back in the response.** Every completed task reports the amount billed (`cost` / `credits_cost`); a task marked `failed` is refunded.
- **Async by design.** Submit, take the `task_id`, poll `GET /v1/tasks/{id}` — batching and retries are ordinary queue work, not a bespoke integration.
Qwen-Image 3.0 does text-to-image generation and editing with 1K/2K output through Alibaba's Qwen image route.
## Model id and routes
| Route | `model` value | Billing | Notes |
| --- | --- | --- | --- |
| Per-image | `qwen-image-3.0` | per delivered image, by resolution | see the model page for the exact tiers |
Endpoint: `POST https://api.apimart.ai/v1/images/generations` (OpenAI-compatible), then poll `GET /v1/tasks/{task_id}`.
## Pricing
| Output | List price | Effective price |
| --- | --- | --- |
| default | $0.0375 | $0.03 |
| 4K | $0.05 | $0.04 |
The token-billed official route bills per million tokens instead: `text_input` $1.60, `cached_text_input` free, `image_input` $1.60, `cached_image_input` free, `text_output` $9.60, `image_output` $96.00.
Prices are a snapshot; the pricing page and `data/model.json` are refreshed by CI, and a completed task reports the exact amount in its `cost` field.
## Request parameters
| Field | Type | Default | Notes |
| --- | --- | --- | --- |
| `model` | string | required | the model id shown in the route table above |
| `prompt` | string | required | what to generate, or what to change when editing |
| `size` | string | `auto` / `1:1` | aspect ratio, or `auto` where the route supports it |
| `resolution` | string | `1K` | output resolution tier — cost scales with it |
| `n` | integer | `1` | number of images per task, where the route allows more than one |
| `image_urls` | string[] | — | reference images as public HTTP(S) URLs or base64 data URLs |
| `nsfw_check` | boolean | `false` | runs `omni-moderation-latest` before submitting |
The table lists the fields accepted by the APIMart OpenAI-compatible image endpoint. Check the model page for anything this model adds on top.
## Quickstart
[code]
[code]
Runnable versions: `examples/`. The task lifecycle is `pending → processing → completed | failed`.
## FAQ
**What is the Qwen-Image 3.0 model id?**
`qwen-image-3.0`. See the route table a