Create a prompt

Creates a new standalone prompt with token estimation.

Authentication

AuthorizationBearer
API key or Clerk session token

Request

This endpoint expects an object.
namestringRequired1-255 characters
textstringRequired>=1 character
modelstringOptionalDefaults to kimi-k2.6
responseFormatenumOptionalDefaults to json
Allowed values:
systemPromptstringOptional
userPromptstringOptional

Response

Prompt created
createdAtstring
estimatedCoststring or null
estimatedTokensinteger or null
idstring
modelstring
namestring
organizationIdstring or null
responseFormatstring
textstring
updatedAtstring
userIdstring
systemPromptstring or null
userPromptstring or null

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error