[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-113435":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":12,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":13,"stars30d":13,"stars90d":13,"forks30d":13,"starsTrendScore":13,"compositeScore":13,"rankGlobal":10,"rankLanguage":10,"license":14,"archived":15,"fork":15,"defaultBranch":16,"hasWiki":17,"hasPages":15,"topics":18,"createdAt":10,"pushedAt":10,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":13,"starSnapshotCount":13,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},113435,"seedream-4-api-de","yhkrslhp2s019k\u002Fseedream-4-api-de","yhkrslhp2s019k","Seedream 4 API (`seedream-4-0`): model id, pricing, parameters and copy-paste examples for the OpenAI-compatible APIMart endpoint.","https:\u002F\u002Fgo.apimart.ai\u002Fk-3a25c6",null,"Python",61,0,"Other",false,"main",true,[19,20,21,22,23,24,25,26,27],"ai-api-gateway","ai-image-api","apimart","image-api","image-editing","image-generation","seedream-4","seedream-4-api","text-to-image","2026-11-25 02:05:34","# Seedream 4 API (`seedream-4-0`)\n\n\u003C!-- conv-kit:v1 -->\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fbadges\u002Fprice.svg\" alt=\"observed unit price\"> \u003Cimg src=\"assets\u002Fbadges\u002Fbilling.svg\" alt=\"billing model\"> \u003Cimg src=\"assets\u002Fbadges\u002Fcompat.svg\" alt=\"OpenAI-compatible endpoint\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002F01-product-hero-perfume.jpg\" width=\"820\" alt=\"Sample render via the APIMart image API\">\n\u003C\u002Fp>\n\n> **from $0.0195 per image** on the APIMart route — ein einziger OpenAI-kompatibler Endpoint unter `https:\u002F\u002Fapi.apimart.ai\u002Fv1`, kein Monatsabo nötig. *(erfasst am 2026-10-12)*\n\n**[API-Key erhalten](https:\u002F\u002Fgo.apimart.ai\u002Fk-5488b7)** · **[Live-Preise](https:\u002F\u002Fgo.apimart.ai\u002Fk-cc6811)** · **[Modellseite](https:\u002F\u002Fgo.apimart.ai\u002Fk-3a25c6)** · [⚡ Quickstart in 60 Sekunden](#quickstart)\n\n**Warum Teams Seedream 4 (`seedream-4-0`) über APIMart nutzen**\n\n- **Ein Key, der gesamte Katalog.** Dieselbe Base-URL `https:\u002F\u002Fapi.apimart.ai\u002Fv1` und derselbe `Authorization`-Header erreichen Seedream 4 (`seedream-4-0`) und über 300 weitere Bild-, Video- und Sprachmodelle — Sie wechseln das `model`-Feld, nicht Ihren Client.\n- **$1 Minimum, Pay-as-you-go.** Kein Abo und kein Prepaid-Tarif, den Sie vorab dimensionieren müssen: ab $1 aufladen und in Calls verbrauchen.\n- **Die Abrechnung kommt in der Antwort zurück.** Jede abgeschlossene Aufgabe meldet den berechneten Betrag (`cost` \u002F `credits_cost`); eine als `failed` markierte Aufgabe wird erstattet.\n- **Asynchron by Design.** Absenden, `task_id` entgegennehmen, `GET \u002Fv1\u002Ftasks\u002F{id}` pollen — Batching und Retries sind gewöhnliche Queue-Arbeit, keine Sonderintegration.\n\n\u003C!-- \u002Fconv-kit:v1 -->\n\n\n\nSeedream 4.0 API is ByteDance's unified text-to-image and image editing model. Generate 4K images with industry-leading text rendering, batch processing, and multi-reference support.\n\n## Model id and routes\n\n| Route | `model` value | Billing | Notes |\n| --- | --- | --- | --- |\n| Per-image | `seedream-4-0` | per delivered image, by resolution | see the [model page](https:\u002F\u002Fgo.apimart.ai\u002Fk-3a25c6) for the exact tiers |\n\nEndpoint: `POST https:\u002F\u002Fapi.apimart.ai\u002Fv1\u002Fimages\u002Fgenerations`, then poll `GET \u002Fv1\u002Ftasks\u002F{task_id}`.\n\n## Pricing\n\n\u003C!-- pricing:model:start -->\n| Output | List price | Effective price |\n| --- | --- | --- |\n| default | 0.024375 | 0.0195 |\n\n\n\u003C!-- pricing:model:end -->\n\nPrices are a snapshot; the [pricing page](https:\u002F\u002Fgo.apimart.ai\u002Fk-cc6811) and [`data\u002Fmodel.json`](data\u002Fmodel.json) are refreshed by CI, and a completed task reports the exact amount in its `cost` field.\n\n## Request parameters\n\n| Field | Type | Default | Notes |\n| --- | --- | --- | --- |\n| `model` | string | required | the model id shown in the route table above |\n| `prompt` | string | required | what to generate, or what to change when editing |\n| `size` | string | `auto` \u002F `1:1` | aspect ratio, or `auto` where the route supports it |\n| `resolution` | string | `1K` | output resolution tier — cost scales with it |\n| `n` | integer | `1` | number of images per task, where the route allows more than one |\n| `image_urls` | string[] | — | reference images as public HTTP(S) URLs or base64 data URLs |\n| `nsfw_check` | boolean | `false` | runs `omni-moderation-latest` before submitting |\n\nThe table lists the fields accepted by the APIMart `images\u002Fgenerations` endpoint. Check the [model page](https:\u002F\u002Fgo.apimart.ai\u002Fk-3a25c6) for anything this model adds on top.\n\n## Quickstart\n\n```bash\ncurl --request POST --url https:\u002F\u002Fapi.apimart.ai\u002Fv1\u002Fimages\u002Fgenerations \\\n  --header \"Authorization: Bearer $APIMART_API_KEY\" --header 'Content-Type: application\u002Fjson' \\\n  -d '{\"model\":\"seedream-4-0\",\"prompt\":\"A bamboo forest at sunrise, slow push-in\",\"size\":\"1:1\",\"resolution\":\"1K\"}'\n```\n\n```python\nimport os, time, requests\n\nBASE = \"https:\u002F\u002Fapi.apimart.ai\u002Fv1\"\nHEADERS = {\"Authorization\": f\"Bearer {os.environ['APIMART_API_KEY']}\", \"Content-Type\": \"application\u002Fjson\"}\n\ncreated = requests.post(f\"{BASE}\u002Fimages\u002Fgenerations\", headers=HEADERS, timeout=60, json={\n    \"model\": \"seedream-4-0\", \"prompt\": \"A bamboo forest at sunrise, slow push-in\",\n}).json()\ntask_id = created[\"data\"][\"id\"]\n\nwhile True:\n    task = requests.get(f\"{BASE}\u002Ftasks\u002F{task_id}\", headers=HEADERS, timeout=60).json()[\"data\"]\n    if task[\"status\"] in (\"completed\", \"failed\"):\n        break\n    time.sleep(5)\nprint(task.get(\"cost\"), task[\"result\"][\"images\"][0][\"url\"])\n```\n\nRunnable versions: [`examples\u002F`](examples). The task lifecycle is `pending → processing → completed | failed`.\n\n## FAQ\n\n**Wie lautet die Modell-id von Seedream 4?**\n\n`seedream-4-0`. Siehe Routentabelle oben.\n\n**Wie wird abgerechnet?**\n\n**from $0.0195 per image** on the APIMart route. Die abgeschlossene Aufgabe meldet den genauen Betrag im Feld `cost`; eine fehlgeschlagene Aufgabe wird erstattet.\n\n**How do I get a key?**\n\nUse the [Get an API key](https:\u002F\u002Fgo.apimart.ai\u002Fk-5488b7) link — $1 minimum top-up, no plan required.\n\n\u003C!-- related-repos:auto -->\n## Related repositories\n\n- **Same model, this language** — the other half of this pair: [seedream-4-prompts-de](https:\u002F\u002Fgithub.com\u002Fyhkrslhp2s019k\u002Fseedream-4-prompts-de)\n- **Same model, other languages** — 9 more language builds: 中文 [seedream-4-api-cn](https:\u002F\u002Fgithub.com\u002Fn7q72nsidq42w\u002Fseedream-4-api-cn) · Español [seedream-4-api-es](https:\u002F\u002Fgithub.com\u002Fyft1f3cb8wp\u002Fseedream-4-api-es) · Français [seedream-4-api-fr](https:\u002F\u002Fgithub.com\u002Ft90p6sruvq\u002Fseedream-4-api-fr) · Relay\u002Fgateway [seedream-4-api-gateway](https:\u002F\u002Fgithub.com\u002Fmwdzsicq7v2g8\u002Fseedream-4-api-gateway) · Bahasa [seedream-4-api-id](https:\u002F\u002Fgithub.com\u002Fh2zpbl\u002Fseedream-4-api-id) · 日本語 `seedream-4-api-ja` · 한국어 [seedream-4-api-ko](https:\u002F\u002Fgithub.com\u002Fry93x5wv1d7e\u002Fseedream-4-api-ko) · Português [seedream-4-api-pt](https:\u002F\u002Fgithub.com\u002Fsr35u\u002Fseedream-4-api-pt) · Русский [seedream-4-api-ru](https:\u002F\u002Fgithub.com\u002Ff4oaqsu7whztd\u002Fseedream-4-api-ru)\n- **More models in this language** — [midjourney-api-de](https:\u002F\u002Fgithub.com\u002Fh5fd0cofy\u002Fmidjourney-api-de) · [gemini-2-5-flash-image-preview-api-de](https:\u002F\u002Fgithub.com\u002Fkn6f69s2b8j9\u002Fgemini-2-5-flash-image-preview-api-de) · [nano-banana-api-de](https:\u002F\u002Fgithub.com\u002Fuh6cob8op\u002Fnano-banana-api-de) · [gemini-3-1-flash-image-preview-api-de](https:\u002F\u002Fgithub.com\u002Fk8wq8pd46e5ku\u002Fgemini-3-1-flash-image-preview-api-de) · [nano-banana-2-api-de](https:\u002F\u002Fgithub.com\u002Fmocpl3\u002Fnano-banana-2-api-de) · [gemini-3-pro-image-preview-api-de](https:\u002F\u002Fgithub.com\u002Fcmpxx2w\u002Fgemini-3-pro-image-preview-api-de)\n- **Topic hubs** — every build of this model, all languages: [seedream-4](https:\u002F\u002Fgithub.com\u002Ftopics\u002Fseedream-4) · [seedream-4-api](https:\u002F\u002Fgithub.com\u002Ftopics\u002Fseedream-4-api)\n\nThis repository is one build in a cross-linked set of API guides for the same model family; each language build links back to the others.\n\u003C!-- \u002Frelated-repos:auto -->\n\n## Attributed links (how this repository is measured)\n\n| Purpose | Attributed link | Target |\n| --- | --- | --- |\n| Model page | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-3a25c6> | `apimart.ai\u002Fde\u002Fmodel\u002Fseedream-4` |\n| Live pricing | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-cc6811> | `apimart.ai\u002Fde\u002Fpricing` |\n| Get an API key | \u003Chttps:\u002F\u002Fgo.apimart.ai\u002Fk-5488b7> | `apimart.ai\u002Fde\u002Fkeys` |\n\nOutbound APIMart links are minted through the promo link API; hand-made tracking parameters are rejected by\n`tools\u002Fcheck_links.py` in CI.\n\n## Disclosure\n\nSeedream 4 is a third-party model served through APIMart; this repository documents how to call it and publishes\nmodel ids and prices, and does not claim official status. Model names, prices and documentation belong to their\nrespective owners.\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","Seedream 4 API 是一个基于 ByteDance Seedream-4-0 模型的 OpenAI 兼容图像生成与编辑服务接口，托管在 APIMart 统一 AI 网关上。核心功能包括文本生成高清图像（最高 4K）、图像编辑、多参考图支持、异步任务处理及按实际输出分辨率计费（最低 $0.0195\u002F图），支持单 API Key 调用 300+ 多模态模型。其技术特点是标准化 OpenAI 兼容协议（\u002Fv1\u002Fimages\u002Fgenerations）、实时成本返回（cost 字段）、免订阅的 Pay-as-you-go 计费模式，以及批量任务与轮询式异步工作流。适用于需灵活接入高质量文生图能力的 SaaS 工具、内容平台、自动化设计流水线等轻量级生产场景。",2,"2026-11-24 04:45:51","CREATED_QUERY"]