cURL
curl --request POST \ --url https://api.bieapi.com/v1/chat/completions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "claude-3-5-sonnet-20240620", "messages": [ { "role": "user", "content": "Hi" } ], "stream": false } '
{ "id": "<string>", "object": "<string>", "created": 123, "choices": [ { "message": { "role": "<string>", "content": "<string>" } } ] }
This endpoint generates a chat completion response from OpenAI’s models. You can use for Claude AI, GPT-4, and other models.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Whether to use stream mode (simulates typing effect).
Context of the conversation.
Show child attributes
The model to use (e.g., gpt-4o-mini).
gpt-4o-mini
Successful response
Unique ID of the response.
Type of the response object.
Timestamp of the response creation.