Skip to main content
POST
Cohere

Authorizations

Authorization
string
header
required

Set Authorization header to BYTEZ_KEY (e.g. 'Authorization': 'Key ABC123')

provider-key
string
header
required

Set provider-key header to PROVIDER_KEY (e.g. 'provider-key': 'OPEN_AI_KEY')

Path Parameters

model
string
required

The specific Cohere model to interact with (e.g., command-r).

Body

application/json

Universal schema that supports text, chat, image, audio, video, QA, zero-shot, and more.

text
string

Input text for NLP tasks.

messages
object[]

Conversation history.

url
string<uri>

URL to image/audio/video.

base64
string

Base64-encoded image/audio/video.

question
string

Question (for QA tasks).

context
string

Context paragraph (for QA tasks).

candidate_labels
string[]

Candidate labels (for zero-shot).

stream
boolean

Enable/disable text streaming.

json
boolean

Stream media instead of JSON.

params
object

Model-specific parameters.

Response

200 - application/json

Successful response from the model.

error
string

Null if everything is fine

Example:

null

output

Model output