APIInference

Inference Connections_create

POST/inference/connections

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/inference/connections" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "provider_type": "openai_compatible",    "base_url": "string",    "allowed_models": [      "string"    ]  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "provider_type": "openai_compatible",  "base_url": "string",  "allowed_models": [    "string"  ],  "has_api_key": true,  "managed": true,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}