[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"api-page:grok":3},{"status":4,"api":5,"seo":261},"success",{"blocked":6,"description":7,"about":8,"stats":9,"name":11,"title":12,"slug":13,"logo":14,"created_at":15,"agent":16,"user":27,"endpoint_groups":30,"faqs":144,"features":151,"periodic_plans":152,"payasyougo_plans":258,"releases":259,"last_updated":260},false,"50% Discount with Direct and highly available API for all Grok latest models: Grok-4.6, Grok-3, Grok Vision, and more.","50% Discount. Pricing for this API depends on the official rates for input and output tokens. Credit calculation provides the exact cost of used input and output tokens, as mentioned in the pricing section. Please check the pricing section for more details.\n\n\n### Chat Models\n\n| Model | Input Cost (per 1M tokens) | Output Cost (per 1M tokens) | Supported Endpoints |\n|---|---:|---:|---|\n| grok-4.7 | $1.00 (50% Discount) | $3.00 (50% Discount) | `/chat/completions`, `/messages`, `/responses` |\n| grok-4.6 | $1.00 (50% Discount) | $3.00 (50% Discount) | `/chat/completions`, `/messages`, `/responses` |\n| grok-4.5 | $1.00 (50% Discount) | $3.00 (50% Discount) | `/chat/completions`, `/messages`, `/responses` |\n| grok-4.3 | $0.63 (50% Discount) | $1.25 (50% Discount) | `/chat/completions`, `/messages`, `/responses` |\n| grok-4.20-reasoning | $0.63 (50% Discount) | $1.25 (50% Discount) | `/chat/completions` |\n| grok-4-20-non-reasoning | $0.63 (50% Discount) | $1.25 (50% Discount) | `/chat/completions` |",{"score":10},null,"xAI All Models","xAI All Models API","grok","https://cdn.jojapi.com/api/e0711f6d-9e50-457b-955b-02eab3dbd27a","2026-11-12 03:18:10",{"enabled":17,"closed":10,"request_enabled":6,"catalog_url":18,"discovery_url":19,"directory_url":20,"rails":21,"networks":24,"docs":26},true,"https://grok.jojapi.net/_jojapi/agent/plans","https://grok.jojapi.net/.well-known/x402","https://agents.jojapi.net/apis/grok",[22,23],"x402","mpp",[25],"eip155:8453","https://docs.jojapi.com/consumers/agents",{"nick":28,"name":29,"verified":6,"website":10},"swift-ai","Swift AI",[31,72,120],{"endpoints":32,"name":43,"description":39,"ungrouped":6,"open":6},[33],{"blocked":6,"hidden":6,"deprecation":10,"agent_price":10,"credits":10,"flexible_credits_description":10,"consumptions":34,"description":41,"method":42,"name":43,"url_path":44,"root_url":45,"parameters":46,"responses":58,"result_stats":67},[35],{"name":36,"slug":37,"cost":38,"label":39,"avg":40},"Credits","credits","{\"source\":\"header\",\"name\":\"x-credits-used\",\"default\":1}","",1,"Return a list of available models on this API","GET","List Models","/models","https://grok.jojapi.net",{"url":47,"header":48,"post":55,"body":56,"path":57},[],[49],{"key":50,"is_auth":17,"example":51,"example_disabled":17,"example_type":52,"name":53,"description":51,"required":17,"always_error":54},"X-JoJAPI-Key","You must log in to get API key","string","JoJ API Key","Please log in to get API key",[],[],[],[59],{"status":60,"status_code":61,"description":62,"schema":10,"examples":63,"example":66},"200",200,"Successful response",[64],{"name":65,"summary":39,"description":39,"example":66},"default","[\"grok-4.7\",\"grok-4.6\"]",{"x2":68,"x3":69,"x4":69,"x5":69,"uptime":68,"avg_latency":70,"avg_credits":71},"100.00","0.00","638","1.00",{"endpoints":73,"name":119,"description":39,"ungrouped":6,"open":6},[74,97],{"blocked":6,"hidden":6,"deprecation":10,"agent_price":10,"credits":10,"flexible_credits_description":10,"consumptions":75,"description":77,"method":78,"name":79,"url_path":80,"root_url":45,"parameters":81,"responses":90,"result_stats":95},[76],{"name":36,"slug":37,"cost":38,"label":39,"avg":40},"Creates a model response for the given chat conversation.","POST","Chat Completion","/chat/completions",{"url":82,"header":83,"post":85,"body":86,"path":89},[],[84],{"key":50,"is_auth":17,"example":51,"example_disabled":17,"example_type":52,"name":53,"description":51,"required":17,"always_error":54},[],[87],{"key":10,"example":88,"schema":10,"example_disabled":6,"example_type":52,"value_type":52,"enum_values":10,"default_value":39,"required":6,"name":10,"description":10},"{\"model\":\"grok-4.7\",\"messages\":[{\"role\":\"user\",\"content\":\"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?\"}]}",[],[91],{"status":60,"status_code":61,"description":62,"schema":10,"examples":92,"example":94},[93],{"name":65,"summary":39,"description":39,"example":94},"{\"id\":\"c4192582-5963-9145-b265-37e7c2acf74f\",\"object\":\"chat.completion\",\"created\":1794454269,\"model\":\"grok-4.7\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"None. The other birds flew away at the sound of the gunshot.\",\"reasoning_content\":\"Analyzing the classic riddle about birds in a tree.\\n\\nThe answer is none. The gunshot would scare the remaining birds away.\"},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":1263,\"completion_tokens\":268,\"total_tokens\":1531,\"prompt_tokens_details\":{\"cached_tokens\":1152,\"text_tokens\":1263},\"completion_tokens_details\":{\"reasoning_tokens\":253,\"accepted_prediction_tokens\":0,\"rejected_prediction_tokens\":0},\"credits_details\":{\"credits_used\":2067,\"cost_in_dollars\":0.002067}},\"system_fingerprint\":\"fp_67527dda33\",\"service_tier\":\"default\"}",{"x2":68,"x3":69,"x4":69,"x5":69,"uptime":68,"avg_latency":96,"avg_credits":71},"6,264",{"blocked":6,"hidden":6,"deprecation":10,"agent_price":10,"credits":10,"flexible_credits_description":10,"consumptions":98,"description":100,"method":78,"name":101,"url_path":102,"root_url":45,"parameters":103,"responses":112,"result_stats":117},[99],{"name":36,"slug":37,"cost":38,"label":39,"avg":40},"Creates a model response. Provide text or image inputs to generate text or JSON outputs. Have the model call your own custom code or use built-in tools like web search or file search to use your own data as input for the model’s response.","Responses","/responses",{"url":104,"header":105,"post":107,"body":108,"path":111},[],[106],{"key":50,"is_auth":17,"example":51,"example_disabled":17,"example_type":52,"name":53,"description":51,"required":17,"always_error":54},[],[109],{"key":10,"example":110,"schema":10,"example_disabled":6,"example_type":52,"value_type":52,"enum_values":10,"default_value":39,"required":6,"name":10,"description":10},"{\"model\":\"grok-4.7\",\"input\":\"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?\"}",[],[113],{"status":60,"status_code":61,"description":62,"schema":10,"examples":114,"example":116},[115],{"name":65,"summary":39,"description":39,"example":116},"{\"created_at\":1794454276,\"id\":\"194eeade-6a4d-9212-b2a1-a97c80faed6f\",\"model\":\"grok-4.7\",\"object\":\"response\",\"output\":[{\"id\":\"rs_194eeade-6a4d-9212-b2a1-a97c80faed6f\",\"summary\":[{\"text\":\"Analyzing the riddle about ten birds in a tree.\\n\\nThe standard answer is zero. The gunshot scares the remaining birds away.\",\"type\":\"summary_text\"}],\"type\":\"reasoning\",\"status\":\"completed\",\"encrypted_content\":\"bo1qIaLNl5Kx9tpBzGFg+QU3OhiNxmcG8tDvwcjpj2M/EpdK/vv40SieGjMczbxsTJcri3gWt/3ceRuWQSFBUmcvmWhYD+akRzXJ/+A/jL+lGxJyrXGspGlTjAt0pwgzV+an/b3faNbUWPk4OSHHY62xqiGxZQY89w3OQBZk6ZOraKNMbZjLezeLo17uMYC5VS1gec8gJHlr//tHUjE9fNspIZ6hOHix7g5CGthJ1D3oYnJm77cMAS+gV7lCF7xgUlJrUkuJobYpOca7YkToQFThgCiw8ThVp89h6KqlCAQ8Gdid1Luz6WpUbJ/CmkYemkFTHpMJn2hcWnC8jTAQEyDTvpDWBGk4SIBRC6G44cxNBrDtLJ0mdz2sDkRIjMB3PSuaTJcIhqXnn+2/oheqiG1K6b3CyIvbSWydXQ/SVwz6DOdNwJ9ixhFS/ShM9Ik/7GT3awty765vI45azsmL3fXIMiiUm+APwxErriwPAWcyOeEiOHDC6HF4Al46OS1C+Ozdpck0fJ+4ZBJBjO8wRwZq+gOQeEr0s7HG\"},{\"content\":[{\"type\":\"output_text\",\"text\":\"None. The shot scares the rest away.\",\"logprobs\":[],\"annotations\":[]}],\"id\":\"msg_194eeade-6a4d-9212-b2a1-a97c80faed6f\",\"role\":\"assistant\",\"type\":\"message\",\"status\":\"completed\"}],\"reasoning\":{\"effort\":\"high\",\"summary\":\"detailed\"},\"status\":\"completed\",\"temperature\":0.7,\"text\":{\"format\":{\"type\":\"text\"}},\"tool_choice\":\"auto\",\"top_p\":0.95,\"truncation\":\"disabled\",\"metadata\":{\"system_fingerprint\":\"fp_67527dda33\"},\"background\":false,\"prompt_cache_key\":\"\",\"safety_identifier\":\"\",\"service_tier\":\"default\",\"top_logprobs\":0,\"usage\":{\"input_tokens\":1263,\"output_tokens\":199,\"total_tokens\":1462,\"output_tokens_details\":{\"reasoning_tokens\":189},\"input_tokens_details\":{\"cached_tokens\":1152},\"credits_details\":{\"credits_used\":1860,\"cost_in_dollars\":0.00186}},\"completed_at\":1794454279,\"frequency_penalty\":0,\"presence_penalty\":0,\"store\":true}",{"x2":68,"x3":69,"x4":69,"x5":69,"uptime":68,"avg_latency":118,"avg_credits":71},"4,715","OpenAI compatible Endpoints",{"endpoints":121,"name":143,"description":39,"ungrouped":6,"open":6},[122],{"blocked":6,"hidden":6,"deprecation":10,"agent_price":10,"credits":10,"flexible_credits_description":10,"consumptions":123,"description":125,"method":78,"name":126,"url_path":127,"root_url":45,"parameters":128,"responses":136,"result_stats":141},[124],{"name":36,"slug":37,"cost":38,"label":39,"avg":40},"The official Anthropic API endpoint for generating conversational responses using Claude models.\n\nThis endpoint supports text and multimodal inputs, including images and documents, depending on the capabilities of the selected model. It also supports multi-turn conversations, system instructions, tool use (function calling), extended thinking, prompt caching, structured content blocks, and configurable generation parameters.","Messages","/messages",{"url":129,"header":130,"post":132,"body":133,"path":135},[],[131],{"key":50,"is_auth":17,"example":51,"example_disabled":17,"example_type":52,"name":53,"description":51,"required":17,"always_error":54},[],[134],{"key":10,"example":88,"schema":10,"example_disabled":6,"example_type":52,"value_type":52,"enum_values":10,"default_value":39,"required":6,"name":10,"description":10},[],[137],{"status":60,"status_code":61,"description":62,"schema":10,"examples":138,"example":140},[139],{"name":65,"summary":39,"description":39,"example":140},"{\"id\":\"4b539f8c-e781-908e-86fc-b6e410dbb1f1\",\"type\":\"message\",\"role\":\"assistant\",\"content\":[{\"type\":\"thinking\",\"thinking\":\"Considering the classic riddle about ten birds in a tree.\\n\\nThe classic answer is zero. The gunshot scares the remaining birds away.\"},{\"type\":\"text\",\"text\":\"None. The gunshot scares the rest away, and the one that was hit falls out of the tree.\"}],\"model\":\"grok-4.7\",\"stop_reason\":\"end_turn\",\"usage\":{\"input_tokens\":1263,\"output_tokens\":491,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":1152,\"cache_creation\":{\"ephemeral_1h_input_tokens\":0,\"ephemeral_5m_input_tokens\":0},\"output_tokens_details\":{},\"credits_details\":{\"credits_used\":2736,\"cost_in_dollars\":0.002736}}}",{"x2":68,"x3":69,"x4":69,"x5":69,"uptime":68,"avg_latency":142,"avg_credits":71},"9,058","Anthropic Endpoints",[145,148],{"question":146,"answer":147},"How are credits calculated?","1M credits represent $1 which is calculated based on consumed model’s input and output pricing.",{"question":149,"answer":150},"Does the API support streaming?","Yes, the API supports streaming.",[],[153,169,178,188,198,208,218,228,238,248],{"type":154,"slug":155,"blocked":6,"period":156,"currency":157,"pricing":158,"rate_limit":163,"objects":164,"name":167,"display_name":167,"features":168},"periodic","r2xt4a1x6e2zk3srw2q8e7kg","1 MONTH","usd",{"price":159,"credits":160,"past_due_timeout_num":161,"past_due_timeout_type":162},0,10000,3,"DAY",{"max_requests":10,"time_window":10},[165],{"id":166,"name":36,"slug":37,"quota":160,"tiers":10},"n729712e2","Free",[],{"type":154,"slug":170,"blocked":6,"period":156,"currency":157,"pricing":171,"rate_limit":173,"objects":174,"name":176,"display_name":176,"features":177},"wd7j3yzxu5rlb79gllss0i8q",{"price":40,"credits":172,"past_due_timeout_num":161,"past_due_timeout_type":162},1000000,{"max_requests":10,"time_window":10},[175],{"id":166,"name":36,"slug":37,"quota":172,"tiers":10},"Start",[],{"type":154,"slug":179,"blocked":6,"period":156,"currency":157,"pricing":180,"rate_limit":183,"objects":184,"name":186,"display_name":186,"features":187},"98k3g3ai9vqrcqcdkadar9dy",{"price":181,"credits":182,"past_due_timeout_num":161,"past_due_timeout_type":162},5,5000000,{"max_requests":10,"time_window":10},[185],{"id":166,"name":36,"slug":37,"quota":182,"tiers":10},"Basic",[],{"type":154,"slug":189,"blocked":6,"period":156,"currency":157,"pricing":190,"rate_limit":193,"objects":194,"name":196,"display_name":196,"features":197},"qmuo4gcxvmsqzg3ij73jyqzv",{"price":191,"credits":192,"past_due_timeout_num":161,"past_due_timeout_type":162},10,10000000,{"max_requests":10,"time_window":10},[195],{"id":166,"name":36,"slug":37,"quota":192,"tiers":10},"Pro",[],{"type":154,"slug":199,"blocked":6,"period":156,"currency":157,"pricing":200,"rate_limit":203,"objects":204,"name":206,"display_name":206,"features":207},"1fwr4savvo6i7ow5vtqguq7o",{"price":201,"credits":202,"past_due_timeout_num":161,"past_due_timeout_type":162},25,25000000,{"max_requests":10,"time_window":10},[205],{"id":166,"name":36,"slug":37,"quota":202,"tiers":10},"ULTRA",[],{"type":154,"slug":209,"blocked":6,"period":156,"currency":157,"pricing":210,"rate_limit":213,"objects":214,"name":216,"display_name":216,"features":217},"un0dzw933s82ddmzdysw3pfg",{"price":211,"credits":212,"past_due_timeout_num":161,"past_due_timeout_type":162},75,100000000,{"max_requests":10,"time_window":10},[215],{"id":166,"name":36,"slug":37,"quota":212,"tiers":10},"MEGA",[],{"type":154,"slug":219,"blocked":6,"period":156,"currency":157,"pricing":220,"rate_limit":223,"objects":224,"name":226,"display_name":226,"features":227},"c4pqef0zcjybfihtxq74lxp7",{"price":221,"credits":222,"past_due_timeout_num":161,"past_due_timeout_type":162},150,200000000,{"max_requests":10,"time_window":10},[225],{"id":166,"name":36,"slug":37,"quota":222,"tiers":10},"NOVA",[],{"type":154,"slug":229,"blocked":6,"period":156,"currency":157,"pricing":230,"rate_limit":233,"objects":234,"name":236,"display_name":236,"features":237},"45g120js106qda4qn60ddp7d",{"price":231,"credits":232,"past_due_timeout_num":161,"past_due_timeout_type":162},300,400000000,{"max_requests":10,"time_window":10},[235],{"id":166,"name":36,"slug":37,"quota":232,"tiers":10},"ELITE",[],{"type":154,"slug":239,"blocked":6,"period":156,"currency":157,"pricing":240,"rate_limit":243,"objects":244,"name":246,"display_name":246,"features":247},"9otm98bmstbysgev96thl8xp",{"price":241,"credits":242,"past_due_timeout_num":161,"past_due_timeout_type":162},500,800000000,{"max_requests":10,"time_window":10},[245],{"id":166,"name":36,"slug":37,"quota":242,"tiers":10},"Prime",[],{"type":154,"slug":249,"blocked":6,"period":156,"currency":157,"pricing":250,"rate_limit":253,"objects":254,"name":256,"display_name":256,"features":257},"at0zteyvuzqbfkjcqvoq96x6",{"price":251,"credits":252,"past_due_timeout_num":161,"past_due_timeout_type":162},1000,2000000000,{"max_requests":10,"time_window":10},[255],{"id":166,"name":36,"slug":37,"quota":252,"tiers":10},"MAX",[],[],[],"2026-11-12 03:29:19",{"canonical":262,"page_title":263,"meta":264},"https://jojapi.com/hub/api/grok","xAI All Models API Documentation & Playground - JoJ API",{"description":7,"keywords":265},"API,API Documentation,API Playground,Plans & Pricing,xAI All Models,swift-ai"]