# Codex Imagem — MCP server on mcp.ai > Generate images with your own ChatGPT subscription (Plus, Pro or Team), without spending API credits. Connect your Codex login once and ask for the image in plain language, the file is saved to your mcp.ai account. By: mcp.ai · official Page: https://mcp.ai/codex_image ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_codex_image?ms=1786693980000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/codex_image/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/codex_image/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/codex_image/skill.md Postman collection (v2.1): https://mcp.ai/codex_image/postman.json ## Tools - codex_image_generate(prompt: string, account?: string) — Gera uma imagem a partir de um texto, usando a cota de imagens da assinatura ChatGPT conectada (não consome créditos de API). Retorna um link de download do PNG, que também fica na aba Arquivos do mcp - codex_image_subscription(account?: string) — Mostra qual assinatura ChatGPT está conectada (e-mail e plano). Não gera imagem nem consome cota. ## Example prompts - "Generate a flat-style fox mascot image for my brand" - "Create a product photo of a ceramic mug on a light background" - "Which ChatGPT subscription is connected here?" ## Links Docs: https://mcp.ai/docs/mcps/codex_image Website: https://mcp.ai/mcps/codex_image