9router/open-sse/providers/registry/recraft.js
decolua e53ce79abb refactor(open-sse): B1 consolidate media endpoint URLs into registry
- image/embed/tts/search base URLs derive from media.*Config.baseUrl /
  searchViaChat.endpoint (single source); handlers read PROVIDER_MEDIA.
- ~18 hardcoded endpoints moved: bfl/fal/stability/runway/hf/gemini/
  cloudflare/recraft/sdwebui/comfyui/nanobanana image, voyage embed,
  gemini/openrouter tts, chatSearch endpoints.
- Byte-identical: PROVIDERS 62 + alias 90 baselines, image buildUrl outputs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-14 13:58:12 +07:00

44 lines
836 B
JavaScript

export default {
"id": "recraft",
"alias": "recraft",
display: {
"name": "Recraft",
"icon": "image",
"color": "#EC4899",
"textIcon": "RC",
"website": "https://recraft.ai",
"notice": {
"apiKeyUrl": "https://www.recraft.ai/profile/api"
}
},
category: "apikey",
authType: "apikey",
"transport": null,
media: {
serviceKinds: ["image"],
imageConfig: { baseUrl: "https://external.api.recraft.ai/v1/images/generations" }
},
"models": [
{
"id": "recraftv3",
"name": "Recraft V3",
"type": "image",
"params": [
"n",
"size",
"style"
]
},
{
"id": "recraftv2",
"name": "Recraft V2",
"type": "image",
"params": [
"n",
"size",
"style"
]
}
]
};