Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

821 B
Raw Blame
import { MUSE_CODE_IMAGES_GENERATIONS_URL } from "../../../museCode.ts";

// Muse Image on the Meta Model API: OpenAI-compatible /v1/images/generations (JSON)
// and /v1/images/edits (multipart), authenticated with the same muse-code credential
// (pasted META_API_KEY or the device-flow minted inference key).
export const MUSE_CODE_IMAGE_PROVIDER = {
  id: "muse-code",
  alias: "mc",
  baseUrl: MUSE_CODE_IMAGES_GENERATIONS_URL,
  authType: "apikey",
  authHeader: "bearer",
  format: "muse-image",
  models: [
    {
      id: "muse-image-1.0",
      name: "Muse Image 1.0",
      inputModalities: ["text", "image"],
      description: "Text-to-image, or image edit when a reference image is supplied.",
    },
  ],
  // Meta does not publish a size list for Muse Image; do not advertise one.
  supportedSizes: [],
};