---
title: "Create an LLM credential (public API)"
method: POST
path: "/llm-credentials"
tags: ["public", "llm-credentials"]
---

# Create an LLM credential (public API)

`POST /llm-credentials`

## Request body

- object
  - `name` string, required
  - `provider` 'anthropic' | 'openai' | 'google' | 'azure' | 'mistral' | 'cohere' | 'amazon-bedrock' | 'google-vertex' | 'groq' | 'xai' | 'deepseek' | 'perplexity' | 'togetherai' | 'fireworks' | 'cerebras' | 'openrouter', required
  - `model` string
  - `prompt` string
  - `systemPrompt` string
  - `maxTokens` integer
  - `temperature` number
  - `output` string
  - `schema` object
  - `baseUrl` string
  - `azureResourceName` string
  - `azureApiVersion` string
  - `azureUseDeploymentUrls` boolean
  - `azureApiProtocol` 'openai' | 'anthropic'
  - `awsRegion` string
  - `awsAccessKeyId` string
  - `awsSecretAccessKey` string
  - `awsSessionToken` string
  - `gcpProject` string
  - `gcpLocation` string
  - `gcpServiceAccountJson` string
  - `apiKey` string

## Response `200`

OK

- object
  - `id` string, required
  - `name` string, required
  - `provider` 'anthropic' | 'openai' | 'google' | 'azure' | 'mistral' | 'cohere' | 'amazon-bedrock' | 'google-vertex' | 'groq' | 'xai' | 'deepseek' | 'perplexity' | 'togetherai' | 'fireworks' | 'cerebras' | 'openrouter', required
  - `model` string, nullable, required
  - `prompt` string, nullable, required
  - `systemPrompt` string, nullable, required
  - `maxTokens` number, nullable, required
  - `temperature` number, nullable, required
  - `output` string, nullable, required
  - `schema` object, nullable, required
  - `baseUrl` string, nullable, required
  - `azureResourceName` string, nullable, required
  - `azureApiVersion` string, nullable, required
  - `azureUseDeploymentUrls` boolean, nullable, required
  - `azureApiProtocol` 'openai' | 'anthropic', nullable, required
  - `awsRegion` string, nullable, required
  - `gcpProject` string, nullable, required
  - `gcpLocation` string, nullable, required
  - `apiKey` string, nullable, required
  - `awsAccessKeyId` string, nullable, required
  - `awsSecretAccessKey` string, nullable, required
  - `awsSessionToken` string, nullable, required
  - `gcpServiceAccountJson` string, nullable, required
  - `assignedProjectIds` string[], required
  - `createdAt` string, required

---

[API](https://skmtc.net/urlbox/apis/urlbox-public-api-spike.md) · [All operations](https://skmtc.net/urlbox/apis/urlbox-public-api-spike/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/urlbox/urlbox-public-api-spike/revisions/4510ae6afe8d/schema)
