API reference · Cloudsway

cloudsway/search

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

APISynchronousOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/run
Model IDcloudsway/search
01

Input Schema

13 parameters · 1 required · 12 optional

ParameterTypeRequiredDescription
querystringRequiredThe search query string. · Min length: 1
topicstringOptionalContent category to focus on. · Options: general, news, academic, company, people, finance · Default: "general"
generalnewsacademiccompanypeoplefinance
countrystringOptionalTwo-letter ISO country code for localized results. · Options: US, GB, CN, JP, DE, FR, KR, IN, CA, AU, SG, BR, RU, IT, ES, NL, SE, CH, IL, AE
USGBCNJPDEFRKRINCAAUSGBRRUITESNLSECHILAE
end_datestringOptionalOnly return results published before this date. Format: YYYY-MM-DD.
start_datestringOptionalOnly return results published after this date. Format: YYYY-MM-DD.
max_resultsintegerOptionalMaximum number of results to return. · Min: 1 · Max: 100 · Default: 10
include_textbooleanOptionalReturn full page text content for each result. · Default: false
search_depthstringOptionalbasic: fast, low-latency search (~1s). advanced: multi-step reasoning with higher quality results (4-40s), costs more. · Options: basic, advanced · Default: "basic"
basicadvanced
max_charactersintegerOptionalMaximum characters for text content per result. · Min: 1 · Max: 10000 · Default: 3000
exclude_domainsstring[]OptionalExclude results from these domains.
include_domainsstring[]OptionalOnly return results from these domains.
include_summarybooleanOptionalReturn a short summary of each result. · Default: false
include_highlightsbooleanOptionalReturn key excerpts relevant to the query. · Default: true
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description
03

Code Examples

Ready-to-run snippets

curl -X POST https://api.sandbase.ai/v1/run \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "model": "cloudsway/search",
  "query": "latest developments in large language models",
  "topic": "general",
  "max_results": 10,
  "include_text": false,
  "search_depth": "basic",
  "max_characters": 3000,
  "include_summary": false,
  "include_highlights": true,
  "prompt": "a beautiful sunset over mountains"
}'