从注册到首次API调用,4个步骤。每步包含可复制代码。
guideContentStep1Desc
guideContentEndpointRefDesc
/api/ai/generatecurl -X POST https://ai-empire-steel.vercel.app/api/ai/generate \
-H "Content-Type: application/json" \
-H "x-api-key: napi_your_key_here" \
-d '{"prompt": "Write an catchy article title about AI"}'/api/ai/chatcurl -X POST https://ai-empire-steel.vercel.app/api/ai/chat \
-H "Content-Type: application/json" \
-H "x-api-key: napi_your_key_here" \
-d '{"messages": [{"role": "user", "content": "Explain React in 3 sentences"}]}'/api/ai/seocurl -X POST https://ai-empire-steel.vercel.app/api/ai/seo \
-H "Content-Type: application/json" \
-H "x-api-key: napi_your_key_here" \
-d '{"topic": "Build a SaaS with Next.js", "keywords": ["SaaS", "Next.js", "startup"]}'/api/ai/codecurl -X POST https://ai-empire-steel.vercel.app/api/ai/code \
-H "Content-Type: application/json" \
-H "x-api-key: napi_your_key_here" \
-d '{"description": "A React component to display a sortable data table", "language": "typescript"}'