1. Structured Decision
OmniRouters-API Docs
  • Platform API
    • List models(OpenAI)
      GET
    • List models(Gemini)
      GET
    • Get Logs by Token
      GET
  • Chat
    • OpenAI
      • ChatCompletions
      • Responses
    • Gemini
      • Gemini
      • Gemini Vision
    • Claude
      • Claude Messages
  • Videos
    • Omni-Create video
      • Parameter Description
      • Kling
        • Parameter Description
        • Kling-Template
        • Kling-3.0-shot-type
        • Kling-3.0-element-list
      • Vidu-Template
      • Hailuo-Template
      • Seedance-Template
      • JV(Jimeng)-Template
      • GV(Veo)-Template
      • OS(Sora)-Template
      • Hunyuan(Mingmou)-Template
      • Get Task
    • Wan
      • Create Task
      • Get Task
    • Seedance
      • 1.5-Pro-Create Task
      • 2.0(2.0-fast)Create Task
      • 2.0(2.0-fast)Create the start and end frames of the task
      • virtual-asset-upload
      • Get Task
    • Agent-VOD
      • Parameter Description
      • Create Task-general
      • Create Task-ecommerce
      • Create Task-mv
      • Create Task-replicate
      • Get Task
  • Images
    • Omni-Create image
      • Parameter Description
      • Create image
      • Create task image
      • Get Task
    • Nano-Banana
      • Gemini
      • OpenAI Chat
    • Nano-Banana-Pro
      • Gemini
      • OpenAI Chat
    • Nano-Banana2
      • Gemini
    • Seedream
      • Create image
    • Midjouney
      • Submit Imagine task (text-to-image, image-to-image)
      • Submit Blend task (image-to-image)
      • Execute actions (all associated button actions such as UPSCALE, VARIATION, REROLL, ZOOM, etc.)
      • Create Describe task (image-to-text)
      • Submit Modal (submit local redraw, ZOOM)
      • Create Shorten task (prompt analysis)
      • Create an "edits" task (image editing)
      • Create the swap_face task (face swap)
      • Create Video task (text-to-video, text-to-image-to-video)
      • Retrieve tasks by specified ID
    • gpt-image-2
      • Create image
    • Grok
      • Grok Imagine
      • Grok Imagine edits
  • Music
    • Suno
      • Create music
      • Create lyrics
      • Get Task
  • Embeddings
    • OpenAI
      POST
  • Audio
    • Seed-TTS
      • 豆包语音合成模型1.0音色ID
      • 豆包语音合成模型2.0音色ID
      • Seed-TTS
    • Gemini-TTS
      • Gemini-TTS
    • MiniMax-TTS
      • MiniMax-TTS
    • Vidu-TTS
      • Vidu-TTS
    • OpenAI-TTS
  • Moderations
  • Rerank
    • Create rerank
  • Realtime
    • OpenAI
  • Structured Decision
    • Jev Structured Decision
      POST
    • Laya Structured Decision
      POST
  1. Structured Decision

Laya Structured Decision

Developing
POST
https://omnirouters.com/v1/systemone

Request

Header Params

Body Params application/jsonRequired

Example
{
  "model": "laya",
  "state": "I was charged twice for my annual plan this morning. Please refund one of the charges today.",
  "questions": {
    "wants_refund": {
      "type": "noul",
      "instructions": "Is the customer asking for money back?"
    },
    "queue": {
      "type": "choice",
      "instructions": "Which queue should handle this?",
      "criteria": {
        "billing": "Billing department",
        "technical": "Technical support",
        "sales": "Sales team"
      }
    },
    "urgency": {
      "type": "score",
      "instructions": "How urgent is this issue?",
      "criteria": [
        "Can wait a week",
        "Should be handled this week",
        "Needs a reply today"
      ]
    }
  }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://omnirouters.com/v1/systemone' \
--header 'Authorization: Bearer sk-F8wqQBcQjrf0AoqWIoYFRsgHNcEnjMYjKCZ0IxZpxNeIf6VR' \
--header 'Content-Type: application/json' \
--data '{
  "model": "laya",
  "state": "I was charged twice for my annual plan this morning. Please refund one of the charges today.",
  "questions": {
    "wants_refund": {
      "type": "noul",
      "instructions": "Is the customer asking for money back?"
    },
    "queue": {
      "type": "choice",
      "instructions": "Which queue should handle this?",
      "criteria": {
        "billing": "Billing department",
        "technical": "Technical support",
        "sales": "Sales team"
      }
    },
    "urgency": {
      "type": "score",
      "instructions": "How urgent is this issue?",
      "criteria": [
        "Can wait a week",
        "Should be handled this week",
        "Needs a reply today"
      ]
    }
  }
}'

Responses

🟢200成功
application/json
Bodyapplication/json

Example
{}
Modified at 2026-09-21 17:10:25
Previous
Jev Structured Decision
Built with