Skip to main content

Create an AI provider

POST 

/v1/projects/:project_id/ai-providers

Creates a new LLM provider configuration.

A provider's credential is its linked secret_id; config.apiKey is refused with 400 VALIDATION_FAILED.

A record with both base_url and secret_id sends the secret to that URL, so creating one also needs secrets:UseSecret on the secret, else 403.

A bedrock or vertex record must link one. Without it the provider SDK signs with the server's own credentials (the AWS default credential chain, Google Application Default Credentials), which is refused with 400 VALIDATION_FAILED unless the deployment allows it.

Request​

Responses​

AI provider created successfully