メインコンテンツへスキップ
POST
Create LLM config

ヘッダー

X-Workspace-Id
string

Workspace ID

ボディ

application/json
provider
enum<string>
必須
利用可能なオプション:
openai,
anthropic,
gemini,
openrouter,
vercel,
deepseek,
kilo_code,
opencode_go,
custom
例:

"openrouter"

apiKey
string
必須
name
string
例:

"My OpenAI key"

model
string
apiUrl
string
contextWindow
number

Custom context window size in tokens. Overrides API-provided value.

例:

8192

レスポンス

200 - application/json
id
string
必須
provider
enum<string>
必須
利用可能なオプション:
openai,
anthropic,
gemini,
openrouter,
vercel,
deepseek,
kilo_code,
opencode_go,
custom
model
string
必須
isPreferred
boolean
必須
apiKeyMasked
string
必須

Masked API key (shows last 4 chars)

createdAt
string<date-time>
必須
updatedAt
string<date-time>
必須
name
string
apiUrl
string
contextWindow
number