OpenAI ChatGPT API
Example python code, notice you have to use the rapidapi headers!: ``` import openai from openai import OpenAI client = OpenAI(api_key="IGNORED", base_url="https://openai-chatgpt-api.p.rapidapi.com", default_headers={ "X-RapidAPI-Key": "YOUR KEY HERE", }) res = client.chat.completions.create(model="zephyr-7b-f16", messages=[ {"role": "system", "content": "You are a helpful assistant."}, {"role":…
OpenAI ChatGPT API endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST |
/chat/completions /chat/completions |
openai chat completions |
OpenAI ChatGPT API pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|