Skip to main content
POST
/
api
/
ai
/
configurations
Create AI configuration
curl --request POST \
  --url https://api.example.com/api/ai/configurations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "inputModality": [
    "text"
  ],
  "outputModality": [
    "text"
  ],
  "provider": "openrouter",
  "modelId": "openai/gpt-4",
  "systemPrompt": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
inputModality
enum<string>[]
required
Available options:
text,
image
outputModality
enum<string>[]
required
Available options:
text,
image
provider
string
required
Example:

"openrouter"

modelId
string
required
Example:

"openai/gpt-4"

systemPrompt
string

Optional system prompt for the configuration

Response

AI configuration created successfully

id
string<uuid>
message
string