1RPC.AI logo
28+ Models
Results for: “GPT-4o Mini
GPT-4o Mini logo
GPT-4o Mini
GPT-4o Mini is a streamlined variant of GPT-4o optimized for efficiency, reduced latency, and cost-sensitive conversational tasks. It supports short-form dialogue interactions, concise information summarization, brief conversational exchanges, and tasks prioritizing speed and contextual accuracy.
128K Tokens
Python
Typescript
Shell
Loading...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import requests
import json

response = requests.post(
    url="https://1rpc.ai/v1/chat/completions",
    headers={
        "Authorization": "Bearer <1RPC_AI_API_KEY>",
        "Content-type": "application/json",
    },
    data=json.dumps ({
        "model": "gpt-4o-mini",
        "messages": [
            {
                "role": "user",
                "content": "What is the meaning of life?"
            }
        ]
    })
)