Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
使用 cURL 从环境变量读取 API Key,并调用 AIBase 开放平台统一任务接口。
export AIBASE_API_KEY="AIBase_xxxxxxxxxxxxxxxx" curl --request POST \ --url https://api.aibase.cn/v1/openapi/tasks \ --header "AIBase-API-Key: ${AIBASE_API_KEY}" \ --header "AIBase-Request-Id: req-$(date +%s)" \ --header 'Content-Type: application/json' \ --data '{ "apiCode": "geo.questions_corr_recommend", "data": { "keyword": "多智能体系统" } }'
$env:AIBASE_API_KEY = "AIBase_xxxxxxxxxxxxxxxx" curl.exe --request POST ` --url "https://api.aibase.cn/v1/openapi/tasks" ` --header "AIBase-API-Key: $env:AIBASE_API_KEY" ` --header "AIBase-Request-Id: $([guid]::NewGuid())" ` --header "Content-Type: application/json" ` --data-raw '{ "apiCode": "geo.questions_corr_recommend", "data": { "keyword": "多智能体系统" } }'
curl.exe
curl
code = 200
data.result
data.requestId