[{"data":1,"prerenderedAt":1011},["ShallowReactive",2],{"navigation_docs":3,"-reference-llm-api":388,"-reference-llm-api-surround":1006},[4,82,147,173,202,259,298,355],{"title":5,"icon":6,"redirect":7,"path":8,"stem":9,"children":10,"page":73},"Start","i-lucide-compass","\u002Fintro\u002Fquickstart","\u002Fintro","1.intro",[11,14,18,22,74,78],{"title":12,"path":7,"stem":13},"Quickstart","1.intro\u002F0.quickstart",{"title":15,"path":16,"stem":17},"Pipeline Applications","\u002Fintro\u002Fpipeline-app-walkthrough","1.intro\u002F1.pipeline-app-walkthrough",{"title":19,"path":20,"stem":21},"How Redgold works","\u002Fintro\u002Foverview","1.intro\u002F2.overview",{"title":23,"icon":24,"visibility":25,"redirect":26,"path":27,"stem":28,"children":29,"page":73},"Comparison","i-lucide-scale","private","\u002Fintro\u002Fcomparison\u002Fpositioning","\u002Fintro\u002Fcomparison","1.intro\u002F3.comparison",[30,33,37,41,45,49,53,57,61,65,69],{"title":31,"path":26,"stem":32},"Positioning","1.intro\u002F3.comparison\u002F1.positioning",{"title":34,"path":35,"stem":36},"vs Lovable","\u002Fintro\u002Fcomparison\u002Fvs-lovable","1.intro\u002F3.comparison\u002F10.vs-lovable",{"title":38,"path":39,"stem":40},"vs Cloudflare OS","\u002Fintro\u002Fcomparison\u002Fvs-cloudflare-os","1.intro\u002F3.comparison\u002F11.vs-cloudflare-os",{"title":42,"path":43,"stem":44},"vs a backend-as-a-service","\u002Fintro\u002Fcomparison\u002Fvs-baas","1.intro\u002F3.comparison\u002F2.vs-baas",{"title":46,"path":47,"stem":48},"vs serverless compute","\u002Fintro\u002Fcomparison\u002Fvs-serverless-compute","1.intro\u002F3.comparison\u002F3.vs-serverless-compute",{"title":50,"path":51,"stem":52},"vs a do-it-yourself data stack","\u002Fintro\u002Fcomparison\u002Fvs-diy-data-stack","1.intro\u002F3.comparison\u002F4.vs-diy-data-stack",{"title":54,"path":55,"stem":56},"vs Rama","\u002Fintro\u002Fcomparison\u002Fvs-rama","1.intro\u002F3.comparison\u002F5.vs-rama",{"title":58,"path":59,"stem":60},"vs Apache Spark","\u002Fintro\u002Fcomparison\u002Fvs-spark","1.intro\u002F3.comparison\u002F6.vs-spark",{"title":62,"path":63,"stem":64},"vs Apache DataFusion","\u002Fintro\u002Fcomparison\u002Fvs-datafusion","1.intro\u002F3.comparison\u002F7.vs-datafusion",{"title":66,"path":67,"stem":68},"vs Heroku","\u002Fintro\u002Fcomparison\u002Fvs-heroku","1.intro\u002F3.comparison\u002F8.vs-heroku",{"title":70,"path":71,"stem":72},"vs AI model providers","\u002Fintro\u002Fcomparison\u002Fvs-ai-providers","1.intro\u002F3.comparison\u002F9.vs-ai-providers",false,{"title":75,"path":76,"stem":77},"Common tasks","\u002Fintro\u002Fstarting-points","1.intro\u002F4.starting-points",{"title":79,"path":80,"stem":81},"FAQ","\u002Fintro\u002Ffaq","1.intro\u002F5.faq",{"title":83,"icon":84,"redirect":85,"path":86,"stem":87,"children":88,"page":73},"Examples","i-lucide-chef-hat","\u002Fcookbook\u002Foverview","\u002Fcookbook","10.cookbook",[89,91,95,99,103,107,111,115,119,123,127,131,135,139,143],{"title":83,"path":85,"stem":90},"10.cookbook\u002F1.overview",{"title":92,"path":93,"stem":94},"One-shot task in CI","\u002Fcookbook\u002Fone-shot-ci","10.cookbook\u002F10.one-shot-ci",{"title":96,"path":97,"stem":98},"Rate-limit retries","\u002Fcookbook\u002Fretry-rate-limits","10.cookbook\u002F11.retry-rate-limits",{"title":100,"path":101,"stem":102},"Connect GitHub review automation","\u002Fcookbook\u002Fconnect-github-app","10.cookbook\u002F12.connect-github-app",{"title":104,"path":105,"stem":106},"Delegate a task to another agent","\u002Fcookbook\u002Fdelegate-agent-task","10.cookbook\u002F13.delegate-agent-task",{"title":108,"path":109,"stem":110},"Validate a pipeline application change","\u002Fcookbook\u002Fvalidate-pipeline-app","10.cookbook\u002F14.validate-pipeline-app",{"title":112,"path":113,"stem":114},"Verify a managed application deployment","\u002Fcookbook\u002Fverify-managed-deploy","10.cookbook\u002F15.verify-managed-deploy",{"title":116,"path":117,"stem":118},"First API call","\u002Fcookbook\u002Ffirst-api-call","10.cookbook\u002F2.first-api-call",{"title":120,"path":121,"stem":122},"Python client","\u002Fcookbook\u002Fmodel-api-python","10.cookbook\u002F3.model-api-python",{"title":124,"path":125,"stem":126},"Anthropic Messages","\u002Fcookbook\u002Fanthropic-messages","10.cookbook\u002F4.anthropic-messages",{"title":128,"path":129,"stem":130},"Check credits","\u002Fcookbook\u002Fcheck-credits","10.cookbook\u002F5.check-credits",{"title":132,"path":133,"stem":134},"Query data via MCP","\u002Fcookbook\u002Fmcp-query-data","10.cookbook\u002F6.mcp-query-data",{"title":136,"path":137,"stem":138},"Drive an agent via MCP","\u002Fcookbook\u002Fmcp-drive-agent","10.cookbook\u002F7.mcp-drive-agent",{"title":140,"path":141,"stem":142},"Install the client","\u002Fcookbook\u002Finstall-client","10.cookbook\u002F8.install-client",{"title":144,"path":145,"stem":146},"Use another API host","\u002Fcookbook\u002Fpoint-client-at-host","10.cookbook\u002F9.point-client-at-host",{"title":148,"icon":149,"redirect":150,"path":151,"stem":152,"children":153,"page":73},"Agent operations","i-lucide-network","\u002Ffleet\u002Foverview","\u002Ffleet","11.fleet",[154,157,161,165,169],{"title":155,"path":150,"stem":156},"Running agent work","11.fleet\u002F0.overview",{"title":158,"path":159,"stem":160},"Workstreams and issues","\u002Ffleet\u002Fworkstreams-and-issues","11.fleet\u002F1.workstreams-and-issues",{"title":162,"path":163,"stem":164},"Agent lifecycle","\u002Ffleet\u002Fagent-lifecycle","11.fleet\u002F2.agent-lifecycle",{"title":166,"path":167,"stem":168},"Supervision and recovery","\u002Ffleet\u002Fsupervision","11.fleet\u002F3.supervision",{"title":170,"path":171,"stem":172},"An application workstream from request to delivery","\u002Ffleet\u002Fapplication-workstream","11.fleet\u002F4.application-workstream",{"title":174,"icon":175,"redirect":176,"path":177,"stem":178,"children":179,"page":73},"Architecture","i-lucide-layers","\u002Finfrastructure\u002Foverview","\u002Finfrastructure","3.infrastructure",[180,182,186,190,194,198],{"title":174,"path":176,"stem":181},"3.infrastructure\u002F0.overview",{"title":183,"path":184,"stem":185},"A request through the platform","\u002Finfrastructure\u002Frequest-path","3.infrastructure\u002F11.request-path",{"title":187,"path":188,"stem":189},"Agent work and durable state","\u002Finfrastructure\u002Fagent-work","3.infrastructure\u002F12.agent-work",{"title":191,"path":192,"stem":193},"Data and pipelines","\u002Finfrastructure\u002Fdata","3.infrastructure\u002F3.data",{"title":195,"path":196,"stem":197},"AI and agents","\u002Finfrastructure\u002Fai","3.infrastructure\u002F4.ai",{"title":199,"path":200,"stem":201},"Managed deployment","\u002Finfrastructure\u002Fdeployment","3.infrastructure\u002F7.deployment",{"title":203,"icon":204,"redirect":205,"path":206,"stem":207,"children":208,"page":73},"API","i-lucide-book-marked","\u002Freference\u002Fauthentication","\u002Freference","4.reference",[209,212,216,220,224,228,232,236,240,244,248],{"title":210,"path":205,"stem":211},"Authentication","4.reference\u002F1.authentication",{"title":213,"path":214,"stem":215},"Security disclosure policy","\u002Freference\u002Fsecurity-disclosure","4.reference\u002F11.security-disclosure",{"title":217,"path":218,"stem":219},"Model API","\u002Freference\u002Fllm-api","4.reference\u002F2.llm-api",{"title":221,"path":222,"stem":223},"MCP server","\u002Freference\u002Fmcp","4.reference\u002F2.mcp",{"title":225,"path":226,"stem":227},"Data platform preview","\u002Freference\u002Fdata-platform-preview","4.reference\u002F3.data-platform-preview",{"title":229,"path":230,"stem":231},"Terminal client","\u002Freference\u002Fcli","4.reference\u002F6.cli",{"title":233,"path":234,"stem":235},"Pipeline manifest preview","\u002Freference\u002Fpipeline-preview","4.reference\u002F7.pipeline-preview",{"title":237,"path":238,"stem":239},"Limits and retries","\u002Freference\u002Flimits","4.reference\u002F8.limits",{"title":241,"path":242,"stem":243},"API contract details","\u002Freference\u002Fapi-contracts","4.reference\u002F9.api-contracts",{"title":245,"path":246,"stem":247},"Errors","\u002Freference\u002Ferrors","4.reference\u002F9.errors",{"title":249,"icon":250,"visibility":251,"path":252,"stem":253,"children":254,"page":73},"Public API","i-lucide-route","public","\u002Freference\u002Froutes","4.reference\u002Froutes",[255],{"title":256,"path":257,"stem":258},"V1 routes","\u002Freference\u002Froutes\u002Fv1","4.reference\u002Froutes\u002Fv1",{"title":260,"icon":261,"visibility":25,"redirect":262,"path":263,"stem":264,"children":265,"page":73},"Develop","i-lucide-code","\u002Fdevelop\u002Fpipeline-apps\u002Foverview","\u002Fdevelop","5.develop",[266,270,286,290,294],{"title":267,"path":268,"stem":269},"Author a batch transform","\u002Fdevelop\u002Fauthor-a-batch-transform","5.develop\u002F10.author-a-batch-transform",{"title":271,"visibility":251,"redirect":262,"path":272,"stem":273,"children":274,"page":73},"Pipeline Apps","\u002Fdevelop\u002Fpipeline-apps","5.develop\u002F11.pipeline-apps",[275,278,282],{"title":276,"path":262,"stem":277},"Pipeline apps","5.develop\u002F11.pipeline-apps\u002F1.overview",{"title":279,"path":280,"stem":281},"Collaborative board walkthrough","\u002Fdevelop\u002Fpipeline-apps\u002Fcollaborative-board","5.develop\u002F11.pipeline-apps\u002F2.collaborative-board",{"title":283,"path":284,"stem":285},"Release and security lifecycle","\u002Fdevelop\u002Fpipeline-apps\u002Frelease-lifecycle","5.develop\u002F11.pipeline-apps\u002F3.release-lifecycle",{"title":287,"path":288,"stem":289},"Build a vertical","\u002Fdevelop\u002Fbuild-a-vertical","5.develop\u002F5.build-a-vertical",{"title":291,"path":292,"stem":293},"Managed application artifacts","\u002Fdevelop\u002Fscaffold-a-narrow-app","5.develop\u002F7.scaffold-a-narrow-app",{"title":295,"path":296,"stem":297},"Import your data","\u002Fdevelop\u002Fimport-your-data","5.develop\u002F8.import-your-data",{"title":299,"icon":300,"redirect":301,"path":302,"stem":303,"children":304,"page":73},"Guides","i-lucide-layout-grid","\u002Fapplications\u002Fai-agents\u002Foverview","\u002Fapplications","7.applications",[305,309,329,341],{"title":306,"path":307,"stem":308},"Application maturity catalog","\u002Fapplications\u002Fcatalog","7.applications\u002F0.catalog",{"title":310,"visibility":251,"path":311,"stem":312,"children":313,"page":73},"AI Agents","\u002Fapplications\u002Fai-agents","7.applications\u002F1.ai-agents",[314,317,321,325],{"title":315,"path":301,"stem":316},"Coding agents","7.applications\u002F1.ai-agents\u002F01.overview",{"title":318,"path":319,"stem":320},"GitHub App automation","\u002Fapplications\u002Fai-agents\u002Fgithub-app-automation","7.applications\u002F1.ai-agents\u002F04.github-app-automation",{"title":322,"path":323,"stem":324},"agent-cli assistance","\u002Fapplications\u002Fai-agents\u002Fagent-cli-assistance","7.applications\u002F1.ai-agents\u002F05.agent-cli-assistance",{"title":326,"path":327,"stem":328},"Agent REST control","\u002Fapplications\u002Fai-agents\u002Frest-agent-control","7.applications\u002F1.ai-agents\u002F06.rest-agent-control",{"title":330,"visibility":251,"path":331,"stem":332,"children":333,"page":73},"Tickets","\u002Fapplications\u002Ftickets","7.applications\u002F2.tickets",[334,337],{"title":330,"path":335,"stem":336},"\u002Fapplications\u002Ftickets\u002Foverview","7.applications\u002F2.tickets\u002F01.overview",{"title":338,"path":339,"stem":340},"API walkthrough","\u002Fapplications\u002Ftickets\u002Fapi-walkthrough","7.applications\u002F2.tickets\u002F02.api-walkthrough",{"title":342,"icon":343,"visibility":251,"path":344,"stem":345,"children":346,"page":73},"Case studies","i-lucide-book-open-check","\u002Fapplications\u002Fcase-studies","7.applications\u002F6.case-studies",[347,351],{"title":348,"path":349,"stem":350},"Case study: owner-scoped tickets","\u002Fapplications\u002Fcase-studies\u002Ftickets","7.applications\u002F6.case-studies\u002F01.tickets",{"title":352,"path":353,"stem":354},"Case study: repository review and correction","\u002Fapplications\u002Fcase-studies\u002Frepository-review","7.applications\u002F6.case-studies\u002F02.repository-review",{"title":356,"icon":357,"redirect":358,"path":359,"stem":360,"children":361,"page":73},"Resources","i-lucide-library","\u002Fresources\u002Fglossary","\u002Fresources","9.resources",[362,365,369,373,377,380,384],{"title":363,"path":358,"stem":364},"Glossary","9.resources\u002F1.glossary",{"title":366,"path":367,"stem":368},"Terms of Service","\u002Fresources\u002Fterms","9.resources\u002F2.terms",{"title":370,"path":371,"stem":372},"Privacy Policy","\u002Fresources\u002Fprivacy","9.resources\u002F3.privacy",{"title":374,"path":375,"stem":376},"Acceptable Use Policy","\u002Fresources\u002Facceptable-use","9.resources\u002F4.acceptable-use",{"title":79,"path":378,"stem":379},"\u002Fresources\u002Ffaq","9.resources\u002F5.faq",{"title":381,"path":382,"stem":383},"Documentation feedback","\u002Fresources\u002Fdocs-feedback","9.resources\u002F6.docs-feedback",{"title":385,"path":386,"stem":387},"Refund and Cancellation Policy","\u002Fresources\u002Frefund-cancellation","9.resources\u002F7.refund-cancellation",{"id":389,"title":217,"access":390,"audience":391,"body":392,"description":998,"extension":999,"last_verified":1000,"links":1001,"maturity":1002,"meta":1003,"navigation":652,"path":218,"seo":1004,"stem":219,"__hash__":1005},"docs\u002F4.reference\u002F2.llm-api.md","api-key","developer",{"type":393,"value":394,"toc":990},"minimark",[395,412,427,432,435,480,483,596,613,620,624,631,723,730,734,740,795,798,816,897,901,907,947,951,954,976,986],[396,397,398,399,403,404,407,408,411],"p",{},"The public model API is served from ",[400,401,402],"code",{},"https:\u002F\u002Fapi.redgold.ai",". Every model behind it is a Redgold model. The flagship, ",[400,405,406],{},"redgold-flint",", is a fusion model: one model interface backed by multiple expert models, with per-request routing across the experts handled inside the serving stack. ",[400,409,410],{},"redgold-flint-base"," is the same interface without the fusion routing layer.",[396,413,414,415,418,419,422,423,426],{},"The API speaks two wire formats, so you can reach the models with whichever SDK you already use: the OpenAI-compatible surface (",[400,416,417],{},"\u002Fv1\u002Fchat\u002Fcompletions",", ",[400,420,421],{},"\u002Fv1\u002Fresponses",") and the Anthropic-compatible surface (",[400,424,425],{},"\u002Fv1\u002Fmessages","). Both authenticate the Redgold account, meter usage, and route to an available backend.",[428,429,431],"h2",{"id":430},"discover-models","Discover models",[396,433,434],{},"Model availability changes independently of client code. Query the authenticated model list and use an identifier returned for your account.",[436,437,442],"pre",{"className":438,"code":439,"language":440,"meta":441,"style":441},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl https:\u002F\u002Fapi.redgold.ai\u002Fv1\u002Fmodels \\\n  -H \"Authorization: Bearer $REDGOLD_API_KEY\"\n","bash","",[400,443,444,461],{"__ignoreMap":441},[445,446,449,453,457],"span",{"class":447,"line":448},"line",1,[445,450,452],{"class":451},"sBMFI","curl",[445,454,456],{"class":455},"sfazB"," https:\u002F\u002Fapi.redgold.ai\u002Fv1\u002Fmodels",[445,458,460],{"class":459},"sTEyZ"," \\\n",[445,462,464,467,471,474,477],{"class":447,"line":463},2,[445,465,466],{"class":455},"  -H",[445,468,470],{"class":469},"sMK4o"," \"",[445,472,473],{"class":455},"Authorization: Bearer ",[445,475,476],{"class":459},"$REDGOLD_API_KEY",[445,478,479],{"class":469},"\"\n",[396,481,482],{},"The response follows the OpenAI model-list envelope:",[436,484,488],{"className":485,"code":486,"language":487,"meta":441,"style":441},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"object\": \"list\",\n  \"data\": [{ \"id\": \"model-id\", \"object\": \"model\", \"owned_by\": \"redgold\" }]\n}\n","json",[400,489,490,495,520,590],{"__ignoreMap":441},[445,491,492],{"class":447,"line":448},[445,493,494],{"class":469},"{\n",[445,496,497,500,504,507,510,512,515,517],{"class":447,"line":463},[445,498,499],{"class":469},"  \"",[445,501,503],{"class":502},"spNyl","object",[445,505,506],{"class":469},"\"",[445,508,509],{"class":469},":",[445,511,470],{"class":469},[445,513,514],{"class":455},"list",[445,516,506],{"class":469},[445,518,519],{"class":469},",\n",[445,521,523,525,528,530,532,535,537,540,542,544,546,549,551,554,556,558,560,562,564,567,569,571,573,576,578,580,582,585,587],{"class":447,"line":522},3,[445,524,499],{"class":469},[445,526,527],{"class":502},"data",[445,529,506],{"class":469},[445,531,509],{"class":469},[445,533,534],{"class":469}," [{",[445,536,470],{"class":469},[445,538,539],{"class":451},"id",[445,541,506],{"class":469},[445,543,509],{"class":469},[445,545,470],{"class":469},[445,547,548],{"class":455},"model-id",[445,550,506],{"class":469},[445,552,553],{"class":469},",",[445,555,470],{"class":469},[445,557,503],{"class":451},[445,559,506],{"class":469},[445,561,509],{"class":469},[445,563,470],{"class":469},[445,565,566],{"class":455},"model",[445,568,506],{"class":469},[445,570,553],{"class":469},[445,572,470],{"class":469},[445,574,575],{"class":451},"owned_by",[445,577,506],{"class":469},[445,579,509],{"class":469},[445,581,470],{"class":469},[445,583,584],{"class":455},"redgold",[445,586,506],{"class":469},[445,588,589],{"class":469}," }]\n",[445,591,593],{"class":447,"line":592},4,[445,594,595],{"class":469},"}\n",[396,597,598,599,601,602,604,605,418,607,609,610,612],{},"The list contains identifiers for both API families. ",[400,600,406],{}," and ",[400,603,410],{}," use the OpenAI-compatible routes (",[400,606,417],{},[400,608,421],{},"). The remaining identifiers in your account's list are served through the Anthropic-compatible ",[400,611,425],{}," route; use one exactly as returned.",[396,614,615,616,619],{},"Treat ",[400,617,618],{},"\u002Fv1\u002Fmodels"," as authoritative and read identifiers from it rather than hard-coding them — the set changes independently of client code, and an account may not see every entry. An unknown identifier, or one sent to the wrong API family, returns a model-not-found error.",[428,621,623],{"id":622},"openai-chat-completions","OpenAI Chat Completions",[396,625,626,627,630],{},"Use ",[400,628,629],{},"POST \u002Fv1\u002Fchat\u002Fcompletions"," with the normal OpenAI message shape. Both complete JSON responses and server-sent-event streams are supported.",[436,632,636],{"className":633,"code":634,"language":635,"meta":441,"style":441},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import os\nfrom openai import OpenAI\n\nclient = OpenAI(\n    base_url=\"https:\u002F\u002Fapi.redgold.ai\u002Fv1\",\n    api_key=os.environ[\"REDGOLD_API_KEY\"],\n)\n\nmodels = client.models.list()\nprint([model.id for model in models.data])\nresponse = client.chat.completions.create(\n    model=\"redgold-flint\",\n    messages=[{\"role\": \"user\", \"content\": \"Hello\"}],\n)\nprint(response.choices[0].message.content)\n","python",[400,637,638,643,648,654,659,665,671,677,682,688,694,700,706,712,717],{"__ignoreMap":441},[445,639,640],{"class":447,"line":448},[445,641,642],{},"import os\n",[445,644,645],{"class":447,"line":463},[445,646,647],{},"from openai import OpenAI\n",[445,649,650],{"class":447,"line":522},[445,651,653],{"emptyLinePlaceholder":652},true,"\n",[445,655,656],{"class":447,"line":592},[445,657,658],{},"client = OpenAI(\n",[445,660,662],{"class":447,"line":661},5,[445,663,664],{},"    base_url=\"https:\u002F\u002Fapi.redgold.ai\u002Fv1\",\n",[445,666,668],{"class":447,"line":667},6,[445,669,670],{},"    api_key=os.environ[\"REDGOLD_API_KEY\"],\n",[445,672,674],{"class":447,"line":673},7,[445,675,676],{},")\n",[445,678,680],{"class":447,"line":679},8,[445,681,653],{"emptyLinePlaceholder":652},[445,683,685],{"class":447,"line":684},9,[445,686,687],{},"models = client.models.list()\n",[445,689,691],{"class":447,"line":690},10,[445,692,693],{},"print([model.id for model in models.data])\n",[445,695,697],{"class":447,"line":696},11,[445,698,699],{},"response = client.chat.completions.create(\n",[445,701,703],{"class":447,"line":702},12,[445,704,705],{},"    model=\"redgold-flint\",\n",[445,707,709],{"class":447,"line":708},13,[445,710,711],{},"    messages=[{\"role\": \"user\", \"content\": \"Hello\"}],\n",[445,713,715],{"class":447,"line":714},14,[445,716,676],{},[445,718,720],{"class":447,"line":719},15,[445,721,722],{},"print(response.choices[0].message.content)\n",[396,724,725,726,729],{},"For streaming, pass ",[400,727,728],{},"stream=True"," and consume the SDK iterator.",[428,731,733],{"id":732},"openai-responses","OpenAI Responses",[396,735,736,739],{},[400,737,738],{},"POST \u002Fv1\u002Fresponses"," accepts the OpenAI Responses shape for compatible models. Use this endpoint for clients that are built around the newer Responses API instead of Chat Completions.",[436,741,743],{"className":438,"code":742,"language":440,"meta":441,"style":441},"curl https:\u002F\u002Fapi.redgold.ai\u002Fv1\u002Fresponses \\\n  -H \"Authorization: Bearer $REDGOLD_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"model\":\"model-id\",\"input\":\"Hello\"}'\n",[400,744,745,754,768,781],{"__ignoreMap":441},[445,746,747,749,752],{"class":447,"line":448},[445,748,452],{"class":451},[445,750,751],{"class":455}," https:\u002F\u002Fapi.redgold.ai\u002Fv1\u002Fresponses",[445,753,460],{"class":459},[445,755,756,758,760,762,764,766],{"class":447,"line":463},[445,757,466],{"class":455},[445,759,470],{"class":469},[445,761,473],{"class":455},[445,763,476],{"class":459},[445,765,506],{"class":469},[445,767,460],{"class":459},[445,769,770,772,774,777,779],{"class":447,"line":522},[445,771,466],{"class":455},[445,773,470],{"class":469},[445,775,776],{"class":455},"Content-Type: application\u002Fjson",[445,778,506],{"class":469},[445,780,460],{"class":459},[445,782,783,786,789,792],{"class":447,"line":592},[445,784,785],{"class":455},"  -d",[445,787,788],{"class":469}," '",[445,790,791],{"class":455},"{\"model\":\"model-id\",\"input\":\"Hello\"}",[445,793,794],{"class":469},"'\n",[428,796,124],{"id":797},"anthropic-messages",[396,799,800,801,804,805,807,808,811,812,815],{},"The Anthropic SDK should use the host without an added ",[400,802,803],{},"\u002Fv1"," suffix because the SDK appends ",[400,806,425],{}," itself. The model API authenticates from the ",[400,809,810],{},"Authorization: Bearer"," header and does not read the ",[400,813,814],{},"x-api-key"," header the SDK sends by default, so present the key as a bearer token:",[436,817,819],{"className":633,"code":818,"language":635,"meta":441,"style":441},"import os\nfrom anthropic import Anthropic\n\nclient = Anthropic(\n    base_url=\"https:\u002F\u002Fapi.redgold.ai\",\n    api_key=\"unused\",  # the model API reads Authorization, not x-api-key\n    default_headers={\"Authorization\": f\"Bearer {os.environ['REDGOLD_API_KEY']}\"},\n)\n\nwith client.messages.stream(\n    model=\"model-id-from-v1-models\",\n    max_tokens=256,\n    messages=[{\"role\": \"user\", \"content\": \"Hello\"}],\n) as stream:\n    for text in stream.text_stream:\n        print(text, end=\"\")\n",[400,820,821,825,830,834,839,844,849,854,858,862,867,872,877,881,886,891],{"__ignoreMap":441},[445,822,823],{"class":447,"line":448},[445,824,642],{},[445,826,827],{"class":447,"line":463},[445,828,829],{},"from anthropic import Anthropic\n",[445,831,832],{"class":447,"line":522},[445,833,653],{"emptyLinePlaceholder":652},[445,835,836],{"class":447,"line":592},[445,837,838],{},"client = Anthropic(\n",[445,840,841],{"class":447,"line":661},[445,842,843],{},"    base_url=\"https:\u002F\u002Fapi.redgold.ai\",\n",[445,845,846],{"class":447,"line":667},[445,847,848],{},"    api_key=\"unused\",  # the model API reads Authorization, not x-api-key\n",[445,850,851],{"class":447,"line":673},[445,852,853],{},"    default_headers={\"Authorization\": f\"Bearer {os.environ['REDGOLD_API_KEY']}\"},\n",[445,855,856],{"class":447,"line":679},[445,857,676],{},[445,859,860],{"class":447,"line":684},[445,861,653],{"emptyLinePlaceholder":652},[445,863,864],{"class":447,"line":690},[445,865,866],{},"with client.messages.stream(\n",[445,868,869],{"class":447,"line":696},[445,870,871],{},"    model=\"model-id-from-v1-models\",\n",[445,873,874],{"class":447,"line":702},[445,875,876],{},"    max_tokens=256,\n",[445,878,879],{"class":447,"line":708},[445,880,711],{},[445,882,883],{"class":447,"line":714},[445,884,885],{},") as stream:\n",[445,887,888],{"class":447,"line":719},[445,889,890],{},"    for text in stream.text_stream:\n",[445,892,894],{"class":447,"line":893},16,[445,895,896],{},"        print(text, end=\"\")\n",[428,898,900],{"id":899},"credits","Credits",[396,902,903,906],{},[400,904,905],{},"GET \u002Fv1\u002Fcredits"," returns the available model API credit balance for the authenticated account.",[436,908,910],{"className":485,"code":909,"language":487,"meta":441,"style":441},"{ \"balance_micros\": 1000000, \"balance_usd\": 1.0 }\n",[400,911,912],{"__ignoreMap":441},[445,913,914,917,919,922,924,926,930,932,934,937,939,941,944],{"class":447,"line":448},[445,915,916],{"class":469},"{",[445,918,470],{"class":469},[445,920,921],{"class":502},"balance_micros",[445,923,506],{"class":469},[445,925,509],{"class":469},[445,927,929],{"class":928},"sbssI"," 1000000",[445,931,553],{"class":469},[445,933,470],{"class":469},[445,935,936],{"class":502},"balance_usd",[445,938,506],{"class":469},[445,940,509],{"class":469},[445,942,943],{"class":928}," 1.0",[445,945,946],{"class":469}," }\n",[428,948,950],{"id":949},"streaming-and-errors","Streaming and errors",[396,952,953],{},"Streaming responses use server-sent events. An error before response headers returns a normal provider-shaped HTTP error. An error after a stream begins can arrive as an in-band error event. Clients should handle both cases.",[396,955,956,957,960,961,964,965,967,968,601,972,975],{},"Upstream ",[400,958,959],{},"429"," responses can reach the caller, but the provider's ",[400,962,963],{},"Retry-After"," header is not forwarded. Honor a ",[400,966,963],{}," header when one is present and otherwise apply bounded exponential backoff. See ",[969,970,971],"a",{"href":238},"limits",[969,973,974],{"href":246},"errors",".",[396,977,978,979,982,983,985],{},"The ",[969,980,981],{"href":257},"generated public route inventory"," lists endpoints explicitly approved for external documentation. ",[969,984,241],{"href":242}," add request, response, streaming, error, limit, compatibility, and example guidance. Reachable platform routes absent from the inventory are outside the supported public contract.",[987,988,989],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":441,"searchDepth":463,"depth":463,"links":991},[992,993,994,995,996,997],{"id":430,"depth":463,"text":431},{"id":622,"depth":463,"text":623},{"id":732,"depth":463,"text":733},{"id":797,"depth":463,"text":124},{"id":899,"depth":463,"text":900},{"id":949,"depth":463,"text":950},"OpenAI- and Anthropic-compatible endpoints serving Redgold models at api.redgold.ai.","md","2026-08-10",null,"available",{"toc":652,"visibility":251},{"title":217,"description":998},"lsw-jISEBsF3ubfS1l8h6COtsLKsgviavFhvvI8NlIk",[1007,1009],{"title":213,"path":214,"stem":215,"description":1008,"children":-1},"How to report a security vulnerability in Redgold, what is in scope, our safe-harbor commitment, and the response you can expect.",{"title":221,"path":222,"stem":223,"description":1010,"children":-1},"Connect an external MCP client to your Redgold datasets and agents with an sk-rg key.",1789873213247]