Get your OpenAI-Compatible API key

Connect any OpenAI-compatible endpoint

Connect any API that supports the OpenAI chat completions format. This works with any provider that implements the standard chat completions endpoint.

Key prefix:Varies

Billing depends on your provider. Some offer free access, others require a paid plan or credits.

Available models on Mykey

The models available depend on your endpoint. Any model your provider serves through the OpenAI-compatible chat completions API will work.

Step-by-step guide

1

Get Your Base URL

Find the endpoint URL from your provider's dashboard or documentation.

  1. Log in to your provider's dashboard
  2. Look for the API endpoint or base URL in the documentation
  3. The URL should point to an OpenAI-compatible endpoint (usually ends with /v1)
  4. Copy the full URL — you'll need it in the next step
2

Get Your API Key

Generate or locate your authentication token.

  1. Navigate to the API Keys or Credentials section in your provider's dashboard
  2. Create a new key or copy an existing one
  3. Copy the key immediately — some providers only show it once

Store your key securely. If you lose it, you may need to revoke and regenerate it.

3

Add to Mykey.chat

Connect your endpoint in Mykey settings.

  1. In Mykey.chat, go to Settings → API Keys
  2. Select OpenAI-Compatible
  3. Paste your Base URL
  4. Paste your API Key
  5. Click Save
4

Select Your Models

Choose which models from your endpoint to use.

  1. After saving, Mykey will attempt to fetch available models from your endpoint
  2. Select the models you want to use in your conversations
  3. You can switch between models mid-conversation

Common issues

IssueFix
Connection refusedCheck the Base URL is correct and the server is running
404 Not foundThe endpoint path may differ — ensure /v1 is included
Authentication failedSome providers use Bearer token format — check their docs
Model not foundEnsure the model name matches exactly what your provider serves
CORS errors (local)Ensure CORS is enabled on your local server

Frequently asked questions

What does OpenAI-compatible mean?

It means the API accepts the same request format as OpenAI's API (POST to /v1/chat/completions with the same JSON structure). Many providers support this format, making them easy to integrate.

Can I use a locally hosted model?

Yes. If your local server exposes an OpenAI-compatible endpoint and Mykey can reach it, you can connect it as a custom provider. You may need to expose the endpoint via a tunnel if Mykey is cloud-hosted.

Ready to connect your OpenAI-Compatible key?

Sign in to Mykey and paste your API key in Settings. It will be encrypted with AES-256 immediately.

Sign in to Mykey
Your keys are encrypted with AES-256 and never stored in plain text.