CoolFace
Apppublic

dispatchAI/API-Docs

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
index.html57 linesDownload Raw Back to root
1<!DOCTYPE html>2<html lang="en">3<head>4    <meta charset="UTF-8">5    <meta name="viewport" content="width=device-width, initial-scale=1.0">6    <title>dispatchAI Inference API</title>7    <style>8        body { font-family: system-ui, sans-serif; max-width: 900px; margin: 0 auto; padding: 40px; background: #0A0F1A; color: #F5F7FA; }9        h1 { color: #2E6BFF; }10        h2 { color: #1FE0E6; margin-top: 2em; }11        code { background: #1a2332; padding: 2px 6px; border-radius: 4px; color: #1FE0E6; }12        pre { background: #1a2332; padding: 20px; border-radius: 8px; overflow-x: auto; }13        .badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 0.85em; font-weight: bold; }14        .live { background: #4ade80; color: #0A0F1A; }15        .price { background: #2E6BFF; color: white; }16        table { border-collapse: collapse; width: 100%; margin: 1em 0; }17        th, td { border: 1px solid #2a3a4a; padding: 8px 12px; text-align: left; }18        th { background: #1a2332; color: #2E6BFF; }19    </style>20</head>21<body>22    <h1>๐Ÿš€ dispatchAI Inference API</h1>23    <p>Small. Mobile. Free. UAE-built. Mobile-optimized LLM inference on real Snapdragon hardware.</p>24    <p>25        <span class="badge live">โœ… LIVE</span>26        <span class="badge price">$0.001/1K tokens</span>27        <span class="badge" style="background:#1FE0E6;color:#0A0F1A">10x cheaper than OpenAI</span>28    </p>29    <h2>Base URL</h2>30    <code>https://api.dispatchai.ai/v1</code>31    <h2>Quick Start</h2>32    <pre>import openai33client = openai.OpenAI(base_url="https://api.dispatchai.ai/v1", api_key="da-demo-key-0001")34response = client.chat.completions.create(35    model="dispatchAI/SmolLM2-135M-Instruct-mobile",36    messages=[{"role": "user", "content": "What is the capital of France?"}]37)38print(response.choices[0].message.content)39# โ†’ "The capital of France is Paris."</pre>40    <h2>Available Models</h2>41    <table>42        <tr><th>Model</th><th>Size</th><th>Phone Speed</th></tr>43        <tr><td>dispatchAI/SmolLM2-135M-Instruct-mobile</td><td>101MB</td><td>46 t/s</td></tr>44        <tr><td>dispatchAI/Qwen2.5-0.5B-Instruct-mobile-int4</td><td>469MB</td><td>23 t/s</td></tr>45        <tr><td>dispatchAI/Llama-3.2-1B-Instruct-Q4-mobile</td><td>770MB</td><td>5.4 t/s</td></tr>46    </table>47    <h2>Pricing</h2>48    <table>49        <tr><th>Type</th><th>Price</th></tr>50        <tr><td>Input</td><td>$0.001/1K tokens</td></tr>51        <tr><td>Output</td><td>$0.002/1K tokens</td></tr>52    </table>53    <hr>54    <p>Dispatch AI (FZE) โ€” Sharjah Free Zone, UAE โ€” License No. 10818</p>55</body>56</html>57