zapi.
APISPRICINGDOCSMCP
GitHub
zapi.
APISPRICINGDOCSMCP
GitHub
← Artificial Intelligence
Logo North Mini Code

North Mini Code

North Mini Code — model AI khusus coding, gratis. Tulis/jelaskan/perbaiki kode. OpenAI-compatible streaming.

1endpoint
free

▸ Body (JSON)

application/json payload
messagesarrayRequired

OpenAI-format messages

streambooleanOptional

Stream OpenAI delta SSE. Default false

Values:truefalse
temperaturenumberOptional

Sampling temperature 0-2

max_tokensnumberOptional

Max output tokens

top_pnumberOptional

Nucleus sampling 0-1

reasoning_effortenumOptional

Reasoning effort

Values:lowmediumhigh
toolsarrayOptional

OpenAI tool/function-calling definitions

tool_choicestringOptional

auto | none | required | {function}

response_formatstringOptional

mis. {"type":"json_object"}

stopstringOptional

Stop sequence(s)

seednumberOptional

Deterministic seed

Endpoint

Active request URL

POST
Chat Completions/chat

Details

Endpoint metadata

Category
Artificial Intelligence →
Cache TTL
—
Params
11
Requests
0
Last update
29 days ago
LLM reference
llms.txt

Full reference

1 endpoint · plain text
POSTChat Completions/v1/ai:north/chatOpenAI-compatible chat completions. Streaming SSE + reasoning.

Parameters

messagesarrayrequiredin body
OpenAI-format messages
streambooleanoptionalin body
Stream OpenAI delta SSE. Default false
temperaturenumberoptionalin body
Sampling temperature 0-2
max_tokensnumberoptionalin body
Max output tokens
top_pnumberoptionalin body
Nucleus sampling 0-1
reasoning_effortenumoptionalin body
Reasoning effort Values: low, medium, high.
toolsarrayoptionalin body
OpenAI tool/function-calling definitions
tool_choicestringoptionalin body
auto | none | required | {function}
response_formatstringoptionalin body
mis. {"type":"json_object"}
stopstringoptionalin body
Stop sequence(s)
seednumberoptionalin body
Deterministic seed

Request

curl -X POST "https://api.zpi.web.id/v1/ai:north/chat" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "id": "11109eb9-cc96-4233-afd0-dd2caf17f495",
  "cost": "0",
  "model": "north-mini-code-1-0-xl",
  "usage": {
    "total_tokens": 380,
    "prompt_tokens": 33,
    "completion_tokens": 347,
    "prompt_tokens_details": {
      "audio_tokens": 0,
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "audio_tokens": 0,
      "reasoning_tokens": 224,
      "accepted_prediction_tokens": 0,
      "rejected_prediction_tokens": 0
    }
  },
  "object": "chat.completion",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "```python\ndef cek_palindrome(s: str) -> bool:\n    \"\"\"\n    Periksa apakah string s adalah palindrome, mengabaikan spasi dan huruf kapital.\n    \"\"\"\n    # Hapus semua spasi dan ubah ke huruf kecil\n    cleaned = ''.join(s.split()).lower()\n    # Bandingkan dengan string terbaliknya\n    return cleaned == cleaned[::-1]\n\n# Contoh penggunaan\nif __name__ == \"__main__\":\n    print(cek_palindrome(\"A man a plan a canal Panama\"))  # True\n    print(cek_palindrome(\"Hello World\"))                  # False\n```",
        "reasoning_content": "The user asks: \"Write a Python function cek_palindrome(s) that ignores spaces and capital letters, and include 2 examples\". So we need to output a function that takes a string s, removes spaces, lowercases, then checks if it's equal to its reverse. Provide two example calls with prints presumably. They want concise code. Should be correct.\n\nWe need to output code snippet. Since it's a coding assistant, likely they want Python code. We can include docstring.\n\nLet's produce:\n\ndef cek_palindrome(s):\n    cleaned = ''.join(s.split()).lower()\n    return cleaned == cleaned[::-1]\n\nBut ignoring spaces also includes other whitespace? Probably just spaces. So we can remove spaces: s.replace(\" \", \"\").lower().\n\nBetter: cleaned = ''.join(s.split()).lower() removes all whitespace.\n\nLet's do:\n\ndef cek_palindrome(s):\n    s = ''.join(s.split()).lower()\n    return s == s[::-1]\n\nExamples:\n\nprint(cek_palindrome(\"A man a plan a canal Panama\")) # True\nprint(cek_palindrome(\"Hello World\")) # False\n\nThat's it."
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "created": 1782115834
}
▸ Related

More from this category

Logo Chatex

Chatex

ai/chatex

Chatex chat — OpenAI-compatible chat completions.

121·1·—
Logo Felo AI

Felo AI

ai/felo

AI search assistant dengan web real-time — OpenAI-compatible, support streaming, return sumber referensi.

117·1·—
Logo Copilot AI

Copilot AI

ai/copilot

Microsoft Copilot — chat completion OpenAI-compatible, support streaming SSE

98·1·600s
Logo Dolphin AI

Dolphin AI

ai/dolphin

Dolphin 24B uncensored chat — chat completion OpenAI-compatible, support streaming SSE

42·1·600s
Logo Crawl4AI

Crawl4AI

ai/crawl4ai

LLM-ready markdown extraction with anti-bot escalation. 3-tier: fast (direct), magic (browser stealth), worker-chain (CF Worker IP rotation).

newfeatured
40·1·300s
Logo Z.ai (GLM)

Z.ai (GLM)

ai/z-ai

GLM (Zhipu z.ai) chat — model GLM-4.7. Endpoint kompatibel OpenAI Chat Completions (stream & non-stream).

51·1·—
Major outage
zapi. — Public REST API catalog. No fabricated numbers.
TermsPrivacyAUP© 2026