Skip to content

Quickstart

Start building AI applications with OPE.AI API in 3 minutes.

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 OPE.AI API.

1
Create Your OPE.AI Account
Click here to sign up for your OPE.AI account.
2
Set Up Payment
Link a payment method and add funds through your wallet.
A positive balance is required to use the API. If you encounter any payment issues, please contact us.
3
Generate API Token
Visit the API token page.
to create your first API token. Keep the API key of your token secure as it will be used to authenticate API requests.
4
Make Your First API Call
Start integrating OPE.AI API using your generated API key.

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

Make sure to replace $MODEL_ID with ID of the model to use.

curl https://api-platform.ope.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $YOUR_API_KEY" \
  -d '{
    "model": "$MODEL_ID",
    "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?