feat(catalog): add Krea image and video generation - #509
Open
ironman5366 wants to merge 1 commit into
Open
ironman5366 wants to merge 1 commit into
ironman5366 wants to merge 1 commit into
Conversation
List Krea as an AI-generation API-key provider with 11 curated endpoints: the free job poll, five image routes (Krea 2 Turbo, Krea 2 Large, FLUX.1 dev, FLUX.1 Kontext dev, Nano Banana Pro) and five video routes (Seedance 2.5, Veo 3.1 Fast, Wan 3.0, Hailuo 2.3, MiniMax H3 Max Turbo). Prices come from the x-krea-pricing rate card in the OpenAPI document. Nine of ten test charges match the card on the API-debit ledger; FLUX.1 dev metered below it and its note says so. Also: platform_key_krea slot, Krea's documented 402 out-of-credits signature, the comparison-row test extended for the new shared model rows, and the plugin skill regenerated for the provider count. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
krea) as an AI-generation API-key provider:Authorization: Bearer <key>,https://api.krea.ai, free probeGET /jobs?limit=1.video-gen.task.status), five image routes (Krea 2 Turbo, Krea 2 Large, FLUX.1 [dev], FLUX.1 Kontext [dev], Nano Banana Pro) and five video routes (Seedance 2.5, Veo 3.1 Fast, Wan 3.0, Hailuo 2.3, MiniMax H3 Max Turbo). Five join existing per-model rows (image-gen.gemini-3-pro-image.generate,video-gen.seedance-2-5.generate,video-gen.veo-3-1-fast.generate,video-gen.wan-3-0.from_text,video-gen.hailuo.from_text); five Krea-hosted models are proposed as new per-model keys.x-krea-pricingper operation,source: rate_card_api). Dollars per completed job, so every row is platform-eligible;platform_key_kreaslot added inconfig.py(enabling it is your ops call).Contact: support@krea.ai (Krea is the vendor; this PR was raised by Krea's growth team.)
Eligibility
Authorizationheader (Bearer <key>).GET /jobs?limit=1lists the caller's own jobs and costs nothing.x-krea-pricing). Billing model: prepaid USD API balance, debited per completed job; failed and cancelled jobs are free; an empty balance answers HTTP 402.https://www.krea.ai/docs/llms.txt).ingest_krea()extended tier.Probe (live 2026-09-15 21:40 UTC)
GET https://api.krea.ai/jobs?limit=1→ HTTP 401{"message":"Unauthorized"}(same body on/usage,/styles,/assets,/node-apps, and on a bogusPOST /generate/image/krea/krea-2/medium-turbo; a request with no header answers the same).{"items":[…],"next_cursor":…}.Self-verification ledger (2026-09-15)
Meter: Krea's own API-debit ledger (
gpu_time_transactions.api_debit_microdollars,pass_type='api', one DEBIT row per completed job), read from Krea's warehouse replica by job id. The API exposes no per-call charge field or balance route; the dashboard's API-balance card is the customer-visible view of the same ledger. Noverified:stamps and no example files in this PR.status=completedTotal metered: $1.491620 for the ten generations. All ten jobs completed (6 s to 5 min 18 s) and returned one URL each under
result.urls. Every DEBIT row hasapi_otc_portion_ms = 0, so the whole charge came from the prepaid API balance.Rate-card note: the marketing page https://www.krea.ai/features/api rounds and lags the per-operation
x-krea-pricingcard (it shows Flux at $0.04 and Flux Kontext at $0.04; the card and the meter say $0.007 / $0.021). The YAML follows the card, and the card was confirmed by the meter on 9 of 10 rows.Full-surface map (115 OpenAPI paths, 2026-09-15)
Catalogued (11):
GET /jobs/{id};POST /generate/image/krea/krea-2/medium-turbo,/generate/image/krea/krea-2/large,/generate/image/bfl/flux-1-dev,/generate/image/bfl/flux-1-kontext-dev,/generate/image/google/nano-banana-pro;POST /generate/video/bytedance/seedance-2-5,/generate/video/google/veo-3.1-fast,/generate/video/alibaba/wan-3.0,/generate/video/minimax/hailuo-2.3,/generate/video/minimax/h3-max-turbo.Excluded (reason):
/generate/image/*: Krea 2 Medium, Flux 1.1 Pro / Ultra, Nano Banana, Nano Banana 2 / 2 Lite, Ideogram 2 Turbo / 3, Seedream 4 / 5 Lite / 5 Pro, Luma UNI-1, Muse Image, ChatGPT Image, Grok Imagine 2 / 2 Edit): priced on the card but no shared shelf yet — extended-tier candidates from the OpenAPI.openai/gpt-image-2,gpt-image-2.5-flare,gpt-image-2.5-sunburst,bytedance/seededit,qwen/2512,runway/gen-4-image,z-image/z-image: no price on the rate card yet, so they cannot carry a cost block (GPT Image 2 / 2.5 would otherwise join the existing shared rows — we will add them when the card covers them)./generate/video/*: Wan 2.1 / 2.2 / 2.5, Flux 3 Video, Seedance 2.0 / 2.0 Fast / 2.0 Mini, Veo 2 / 3 / 3 Fast / 3.1 / 3.1 Lite, Kling 2.5 / 2.6 / 3.0 / o1, LTX 2.3 / 2.5 Fast / 2.5 Pro, Ray 2, H3 Max / H3, Hailuo / Hailuo 02, Runway Gen-4 / 4.5, Vidu Q3, Grok Imagine / 1.5): priced, same extended-tier reasoning; the curated set keeps the cheapest tier (H3 Max Turbo), the flagship (Seedance 2.5) and the three cross-provider joins.flux-video-edit,seedance-1.0-pro,seedance-1.0-pro-fast,gemini-omni-flash/1.1,h3-max-camera-controls: no price on the card./generate/enhance/*: Krea Enhance, Krea Legacy, Topaz family, SeedVR2, Flux Upscale, Ruby): no price on the rate card for any of them, so no cost block is possible today./generate/3d/*) and audio, 5 routes (/generate/audio/*): no3d-gen/audio-genplatform slug exists incapabilities.yaml, and platforms cannot be proposed from a provider file. Five 3D routes are priced ($0.021–$0.40 per request); if you add the slugs we will curate them.GET /jobs,DELETE /jobs/{id},GET/POST/DELETE /assets*,GET/PATCH /styles*,POST /styles/train,/styles/{id}/share/*,/node-apps*,POST /export/3d: own-account management, uploads, LoRA training and user-defined workflows — not comparable generation jobs. (POST /assetsis a free way to host inputs;treg hostcovers the same need.)GET /usage: own-account compute-unit report, enterprise-plan entitlement only, and it excludes direct-API jobs — not the API meter.Test plan
uv run --frozen python scripts/catalog_validate.py→OK — 102 provider file(s), 3346 endpoint(s), 0 error(s), 0 warning(s)uv run --frozen --with pytest-xdist pytest -n auto -q→ 4,098 passed, 8 skipped (after regenerating the plugin skill's provider count withscripts/build_plugin.pyand recording Krea's documented 402 incapacity/signatures.py)POST /connections/tokenandcatalog_verify.py kreawith an independent key — email the contact above for a funded test keyNo credential value is in this PR.
verified:stamps and example responses are left for the maintainers.