1. Chat
Spicy API: NSFW AI Image and Video Generation API Docs
  • Core
    • List Models
      GET
    • Get Account
      GET
  • Images
    • Create Image
      POST
    • Edit Image
      POST
    • List Images
      GET
  • Moderation
    • Check a Prompt
      POST
  • Video
    • Create Video
      POST
    • Get Video Task
      GET
  • Chat
    • Create Chat Completion
      POST
  • Agent tools
    • List every agent tool with its argument schema, whether it is guarded (needs approval_token) and whether it works with no balance.
      GET
    • List models
      POST
    • Estimate cost
      POST
    • Get account
      POST
    • List images
      POST
    • Generate image
      POST
    • Edit image
      POST
    • Generate video
      POST
    • Get job
      POST
    • List jobs
      POST
    • Get usage
      POST
    • Create API key
      POST
    • Revoke API key
      POST
    • Get top-up link
      POST
    • Set spend limit
      POST
    • Read acceptable use policy
      POST
  1. Chat

Create Chat Completion

POST
https://api.spicyapi.com/v1/chat/completions
OpenAI-compatible uncensored chat, with streaming. Drop-in compatible with the OpenAI SDK: point baseURL at https://api.spicyapi.com/v1 and pass your SpicyAPI key. Billed on total tokens.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Successful Response
Bodyapplication/json

🟠400
🟠401
🟠402
🟠422
🟠429
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.spicyapi.com/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "model": "string",
    "messages": [
        {
            "role": "string",
            "content": "string"
        }
    ],
    "temperature": 0,
    "max_tokens": 0,
    "stream": true,
    "user": "string"
}'
Response Response Example
{
    "id": "chatcmpl_7b3f",
    "object": "chat.completion",
    "model": "spicy-chat-1",
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "<string>"
            },
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 12,
        "completion_tokens": 84,
        "total_tokens": 96
    },
    "cost_usd": 0.000055
}
Modified at 2026-09-21 21:07:45
Previous
Get Video Task
Next
List every agent tool with its argument schema, whether it is guarded (needs approval_token) and whether it works with no balance.
Built with