Skip to main content
POST
/
v1
/
generation
/
deep_research
Submit Deep Research Task
curl --request POST \
  --url https://api.weryai.com/v1/generation/deep_research \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "mode": "DEEP_RESEARCH",
  "input": "Analyze the latest trends in AI-powered code generation tools",
  "thinking_summaries": "auto",
  "collaborative_planning": true,
  "visualization": "auto",
  "tools": [
    {
      "type": "GOOGLE_SEARCH"
    },
    {
      "type": "FILE_SEARCH",
      "file_search_store_names": [
        "my-corpus-store"
      ]
    }
  ],
  "webhook_url": "https://your-server.com/webhook"
}
'
{
  "status": 0,
  "desc": "success",
  "message": "success",
  "data": {
    "interaction_id": "dr_interaction_abc123",
    "task_id": "task_abc123",
    "status": "processing"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.weryai.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Authenticate using Bearer token. Get your API Key from the WeryAI Console.

Example: Authorization: Bearer sk-xxxxxxxxxxxxxxxx

Body

application/json

Request parameters for submitting a Deep Research task. At least one of input or input_resource must be provided.

mode
enum<string>
default:DEEP_RESEARCH

Research run mode.

Available options:
DEEP_RESEARCH,
DEEP_RESEARCH_MAX
Example:

"DEEP_RESEARCH"

previous_interaction_id
string

Interaction ID from a previous research or execution session, used to continue a multi-round conversation.

Example:

"dr_interaction_abc123"

thinking_summaries
string

Controls how the model exposes its reasoning chain. Set to auto to let the model decide.

Example:

"auto"

collaborative_planning
boolean

When true, the task enters the research/planning phase before execution.

Example:

true

input
string

Plain text input for the research task. At least one of input or input_resource must be provided.

Example:

"Analyze the latest trends in AI-powered code generation tools"

input_resource
object[]

Structured input list supporting text, image, and document items. At least one of input or input_resource must be provided.

visualization
string

Controls whether the agent may generate charts or diagrams. Set to auto to let the model decide.

Example:

"auto"

tools
object[]

List of agent tools to enable for this task.

webhook_url
string<uri>

Callback URL where results will be sent when the task completes.

Example:

"https://your-server.com/webhook"

caller_id
integer<int64>

Caller ID (for business association)

Response

Task submitted successfully

status
integer

Business status code (0 indicates success)

Example:

0

desc
string

Status description

Example:

"success"

message
string

Multi-language message

Example:

"success"

data
object