Please note that attempting to bypass our content safety restrictions to generate sexual, violent or other harmful content may result in a permanent ban on your account.

Make your first API call

Follow these simple steps to make your first API call with Monica Open API.

1

Create Your Monica Account

Click here to sign up for your Monica account.

2

Set Up Payment

Link a payment method and add funds to your account through your billing page.
A positive balance is required to use the API.

If you encountered any payment issues, please contact us.

3

Generate API Key

Visit the API keys page to create your first API key.
Keep this key secure as it will be used to authenticate your API requests.

4

Make Your First API Call

Start integrating Monica’s API using your generated API key.
Here’s an example request:

Replace $YOUR_API_KEY with the actual API key you generated in the previous step.

curl https://openapi.monica.im/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $YOUR_API_KEY" \
  -d '{
  "model": "gpt-4o",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Hi!"
        },
      ]
    }
  ]
}'

What’s next?

Explore available API endpoints and their functionalities:

More info about the API:

Need help?