OpenAI API
Let your AI use the OpenAI API with your own key: ask GPT models through the Responses API, analyse pictures from a link, generate and edit images that appear right in the chat, create embeddings, check content with moderation, and read models, files and batch jobs.
7-day free trial · No credit card · EU-hosted
Ask OpenAI anything
Try a real prompt against OpenAI API via AnythingMCP — Claude calls the tools, returns the answer. Press Enter on your own message to install on Cloud.
Install OpenAI on CloudClaude is AI and can make mistakes. Please double-check responses.
Setup in 2 minutes
- 1Start a free trial on cloud.anythingmcp.com.
- 2Click OpenAI API in the connector store. Paste credentials when prompted.
- 3Mint an MCP API key and point your AI client at the generated MCP URL.
Guides for OpenAI
Step-by-step setup for the most popular AI clients.
Setting up OpenAI API
From the connector definition itself: where to find the credentials, what they need to be allowed to do, and which API this adapter talks to.
OpenAI API
This connector calls the OpenAI API (https://api.openai.com/v1) with the user's own API key: answers from OpenAI models through the Responses API (text, pictures by link, conversations, web search, structured output), image generation and editing with the GPT image models, embeddings, moderation, the model list, files and Batch API jobs.
Every model call is billed to the user's OpenAI account (moderation is free; the model, file and batch lists cost nothing). Prefer the cheap defaults unless the user asks for more.
Setup (about 3 minutes)
- Sign in at https://platform.openai.com and add credit under Settings, Billing (the API is prepaid and separate from a ChatGPT subscription).
- Open https://platform.openai.com/api-keys, click Create new secret key, pick the project, and copy the key (it starts with
sk-; it is shown only once). - Paste it into
OPENAI_API_KEYand install the connector. It is sent asAuthorization: Bearerand only to OpenAI. - Optional:
OPENAI_ORGANIZATION(org-...) andOPENAI_PROJECT(proj_...) when the user belongs to several organizations or wants usage counted on a specific project. Leave them empty otherwise; a value that does not match the key is refused with 401. - For the GPT image models OpenAI requires a verified organization: Settings, Organization, General, Verify Organization. Without it the image tools answer 403.
Defaults (cheap and fast)
- Text:
gpt-6-luna(about $0.10 per million input tokens and $0.50 per million output tokens).gpt-6.1-solandgpt-6-astraare stronger and 20 to 100 times the price. - Images:
gpt-image-1-miniat medium quality, 1024x1024, JPEG (about $0.01 per picture).gpt-image-2.5-flareandgpt-image-2.5-sunburstare the newest models. - Embeddings:
text-embedding-3-smallwith 256 dimensions. Moderation:omni-moderation-latest. - Model ids change often:
openai_list_modelsshows what the key can use.
Tools
openai_create_response: one call of the Responses API.inputis a prompt string or a list of items; pictures go in as{"type": "input_image", "image_url": "https://...", "detail": "auto"}inside a user message.instructionssets the behaviour,reasoningthe effort of reasoning models ({"effort": "low"}is cheaper),textthe output format (JSON schema),tools: [{"type": "web_search"}]adds web search (billed per search). Responses are not stored at OpenAI unlessstoreis true; only stored responses can be continued withprevious_response_id.openai_generate_imageandopenai_edit_image: pictures returned as images in the chat. Each picture costs money: confirm with the user before every call, and keepnat 1 unless they ask for more. A client that cannot show images still gets the text part with the size and type of each picture. Pictures over 4 MB are not returned; use JPEG or WebP, or a smaller size. Edits take pictures by public link or file id (images), plus an optionalmask.openai_create_embeddings: vectors for one text or up to 20 texts.openai_moderate: content policy check of text and pictures.openai_list_models,openai_get_model: what the key can use.openai_list_files,openai_get_file,openai_delete_file: files in the account (no upload or download here).openai_delete_fileis installed switched off.openai_list_batches,openai_get_batch: status of Batch API jobs started elsewhere.
Reading answers: output_text is the answer. status incomplete with incomplete_details.reason max_output_tokens means it was cut (raise max_output_tokens, which includes reasoning tokens). refusal holds the model's refusal text when it declined. An answer stopped by OpenAI's content filter comes back as an error: do not retry the same request.
Common errors
- 401: the key is wrong or revoked, or
OPENAI_ORGANIZATION/OPENAI_PROJECTdo not match it. - 403: the organization is not verified (GPT image models), or the model or region is not available to it.
- 404
model_not_found: checkopenai_list_models. - 429
insufficient_quota: no credit left or the spending limit is reached; add credit. 429rate_limit_exceeded: wait and retry once. Do not retry in a loop. - 400
moderation_blockedorcontent_policy_violation: the safety system refused the prompt.
Out of scope here: chat completions (the Responses API covers it), audio (speech, transcription), realtime, video, file upload and download, creating batches, fine-tuning, vector stores, assistants and the admin API.
Your AI is two clicks away from OpenAI API.
Install the connector, paste your credentials, ask your AI a question. 7-day free trial, no credit card.