Alpha Search API
/v1/alpha/search is a standalone search compatibility interface for specific Agents or coding tools. It is not a regular chat interface, nor a universal search entry point that all models can call.
Interface Information
| Configuration | Value |
|---|---|
| Endpoint | https://api.corerouter.cloud/v1/alpha/search |
| Method | POST |
| Header | Authorization: Bearer sk-... |
| Gateway Required Field | model; additional required fields depend on the upstream protocol |
| Model Requirement | Model ID from console with bound search capability |
Use the calling client's search protocol rather than a regular /v1/chat/completions body. By default, forwarding preserves unrecognized JSON fields and applies model mapping to model; channel parameter overrides can make additional changes. For example, the Tavily route below removes the gateway routing field model before forwarding upstream.
Applicable Scenarios
- Coding tools or Agents send search as an independent request.
- Client has already implemented the search protocol and needs to change request address to custom gateway.
- Need to separately meter or route search requests and regular conversation requests.
If your client just wants the model to use online search in the Responses workflow, prioritize reading Responses API Integration; don't manually convert regular chat requests to /v1/alpha/search.
Tavily Request Example
This example requires the novita-tavily-search route to be configured in the console. Tavily also requires a nonempty string query; do not send only model. This route uses Tavily REST requests and responses. Compatibility with an actual Agent client requires separate verification.
export COREROUTER_API_KEY="sk-xxxxxxxxxxxxxxxx"
curl https://api.corerouter.cloud/v1/alpha/search \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COREROUTER_API_KEY" \
-d '{
"model": "novita-tavily-search",
"query": "What does HTTP 304 Not Modified mean?",
"search_depth": "basic",
"max_results": 2,
"include_answer": "basic",
"include_raw_content": false,
"include_images": false,
"auto_parameters": false
}'The route has been tested with basic search, answer generation, and a result limit. Use include_domains: ["developer.mozilla.org"] to restrict sources. max_results must be an integer from 1 to 20. For other search protocols, use the request body required by that upstream.
Client Integration Points
- Change client's search Endpoint to
https://api.corerouter.cloud/v1/alpha/search. - Use search capability Model ID from console.
- Keep request body fields originally generated by the client; don't replace with Chat Completions'
messages. - First use client's debug logs to confirm final request path, authentication Header, and model name.
- If client also uses
/v1/responses, need to separately confirm Responses and standalone search capabilities; they are not the same switch.
Compatibility Boundaries
- Only channels and models configured with the corresponding search capability can forward successfully. An unsupported channel may return HTTP
500withchannel does not support /v1/alpha/searchinerror.message; inspect the error message rather than relying on the status code alone. - Upstream typically doesn't return standard token usage; gateway will meter as one search tool call; actual cost is based on console records.
- This interface doesn't guarantee streaming output support;
streamfield in request will be preserved and forwarded, but final behavior depends on upstream and client. - Search result structure, citation fields, and error format are determined by upstream protocol; cannot parse using Chat Completions'
choicesstructure.
Common Issues
Returns channel does not support /v1/alpha/search
Current route has no bound search-compatible channel. Switch to models explicitly marked as supporting search in console, or contact service maintainer to confirm if capability is configured.
Request Rejected by Upstream
A common cause is missing fields required by the client protocol. Gateway validation requires model, and channels may add parameter guards. The gateway does not fill in the complete search request for the client. Use the request body generated by the client and check the final model ID.
The current Tavily route has a query guard: a missing query, a null value, or an empty string returns HTTP 400 directly from the gateway, with error.code set to invalid_query and error.message set to query must be a nonempty string. These requests are not forwarded upstream. This rule covers only those query cases; status codes for other parameter errors depend on the channel configuration and upstream. Upstream errors are wrapped in error.message, which may contain a JSON string rather than a top-level detail field. For troubleshooting, share the status code and X-Oneapi-Request-Id first; avoid publishing the full upstream error body.
Why No Token Usage
Standalone search responses may not include standard usage field. Gateway will meter as one search tool call; when troubleshooting costs, refer to console consumption records.
