curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "zai",
"path": "/api/paas/v4/web_search",
"method": "POST",
"body": {
"search_engine": "",
"search_query": "",
"count":
}
}'
{
"success": true,
"data": {
"id": "20261121070515049681da12fc423a",
"created": 1795215916,
"request_id": "20261121070515049681da12fc423a",
"search_intent": [ 1 item ],
"search_result": [ 1 item ]
}
}
A real response, recorded when Orthogonal checked this endpoint.
$0.0109per call
Every call costs the same.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
About this endpoint
The [Web Search](/guides/tools/web-search) is a specialized search engine for large language models. Building upon traditional search engine capabilities like web crawling and ranking, it enhances intent recognition to return results better suited for LLM processing (including webpage titles, URLs, summaries, site names, favicons etc.).
Body parameters
search_enginerequiredstringThe search engine code to call.
search-prime: Z.AI Premium Version Search Enginesearch_queryrequiredstringThe content to be searched.countintegerThe number of results to return
Fillable range: 1-50, maximum 50 results per single search
Default is 10
Supported search engines:
search_pro_jina.search_domain_filterstringUsed to limit the scope of search results and only return content from specified whitelist domains.
Whitelist: Directly enter the domain name (e.g., www.example.com)
Supported search engines:
search_pro_jinasearch_recency_filterstringSearch for webpages within a specified time range.
Default is noLimit
Fillable values:
oneDay: within one day
oneWeek: within one week
oneMonth: within one month
oneYear: within one year
noLimit: no limit (default)
Supported search engines:
search_pro_jinarequest_idstringPassed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.user_idstringUnique ID for the end user, 6–128 characters. Avoid using sensitive information.Response types
idTask ID.stringcreatedRequest creation time, Unix timestamp in seconds.integerMore from Z.ai
- Web page readerPOST/api/paas/v4/reader$0.0109 per callFixed
- Agent taskPOST/api/v1/agentsFrom $0.763 per 1M tokens · varies by agentResponse-based · up to $1.09
- Chat completionPOST/api/paas/v4/chat/completionsFrom $0.0327 per 1M tokens · varies by modelResponse-based · up to $2.228749
- Async image generationPOST/api/paas/v4/async/images/generations$0.01635 per callFixed
- Image/video job resultGET/api/paas/v4/async-result/{id}Free
- Token countPOST/api/paas/v4/tokenizer$0.000109 per callFixed
- Video generationPOST/api/paas/v4/videos/generations$0.218 per callFixed
- Agent job resultPOST/api/v1/agents/async-resultFree
- Speech to textPOST/api/paas/v4/audio/transcriptions$0.001308 per callFixed
- Document OCR parsingPOST/api/paas/v4/layout_parsing$0.0327 per 1M tokensResponse-based · up to $0.00981
- Slides conversation exportPOST/api/v1/agents/conversationFree
- Image generationPOST/api/paas/v4/images/generations$0.01635 per callFixed