Skip to content
Scrap-apiPublic

About

NoteGPT (notegpt.io) - free AI chat and image generation scrap API docs, model catalog, examples, use cases and integrations.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

header

NoteGPT Scrap API

Free AI chat and image generation documentation for notegpt.io — verified chat and signed image calls, a 33-model catalog, chat modes, image model maps, ready-to-run examples, use cases, and integration recipes.

Website Free API Scrap API Models Image Models Streaming

Typing SVG

Last verified: 2026-11-30


Unofficial documentation. This repository is not affiliated with, endorsed by, or maintained by NoteGPT. It documents the public-facing endpoints used by the NoteGPT website for research and education. Endpoints, models, limits, and authentication can change without notice. Respect NoteGPT's terms of service and never send abusive or excessive traffic.


Table of Contents

Open the full table of contents

What is NoteGPT?

NoteGPT is a free AI productivity website built around chat, summarization, and AI image generation. Its web app exposes a straightforward chat completion endpoint plus a separate image generation pipeline. The chat endpoint accepts a model name, a prompt, and a few control fields, then streams generated text as Server-Sent Events.

This repository documents:

  • The short-lived configuration endpoint used to authorize chat requests.
  • The SSE chat completion endpoint and its exact response shape.
  • The complete chat model catalog, including which models are explicitly marked for Deep Think and Web Search.
  • The four chat modes and which ones are available anonymously.
  • The image generator UI workflow, model and sub_type map, request shape, polling flow, and error codes.
  • Copy-paste examples, production patterns, use cases, and integration recipes.

The goal is to make NoteGPT's public web behavior easy to understand and test, while being clear about what is verified and what is experimental.


Highlights

  • No static API key — chat calls use short-lived parameters from a public configuration endpoint.
  • SSE streaming — tokens arrive as text/event-stream messages, parsed like any other SSE stream.
  • 33 chat models documented — GPT, Claude, Gemini, DeepSeek, Kimi, GLM, and MiniMax families in one catalog.
  • Four chat modes — standard, guided_learning, deep_think, and agent.
  • 10 image models documented — Nano Banana, Seedream, and GPT Image families with sub_type values and credit metadata.
  • Verified anonymous chat — gpt-4o-mini and gpt-4.1-mini responded successfully during testing.
  • Free image quota, verified — the image page advertises two free images daily; a fresh anonymous cookie returned times_left: 2, but after one success the same cookie returned times_left: 1 and further signed starts required login. Treat one image per anonymous session as the practical limit; the server may also apply IP-level limits.
  • Ready-to-adapt recipes — curl, Python, Node.js, Telegram, FastAPI, n8n, GitHub Actions, and more.

At a Glance

Item Value
Website https://notegpt.io
Chat page https://notegpt.io/ai-chat
Image page https://notegpt.io/ai-image-generator
API host https://notegpt.io
Config endpoint GET /api/v1/ai-tab/get-prod-config
Chat endpoint POST /api/v2/llm/completions
Chat response SSE (text/event-stream)
Verified models gpt-4o-mini, gpt-4.1-mini
Chat modes standard, guided_learning, deep_think, agent
Image start endpoint POST /api/v2/images/start
Image status endpoint GET /api/v2/images/status
Image session cookie anonymous_user_id
Free image tier 2 per fresh anonymous cookie; the second may require login
API key required No static key; short-lived config is required for chat

Quick Start

The shortest verified chat path is three steps: fetch a fresh configuration object, URL-encode it as query parameters, and POST a chat request. Image generation adds one client-side signing step, covered in step 4.

1. Fetch a fresh configuration

CFG=$(curl -sS 'https://notegpt.io/api/v1/ai-tab/get-prod-config' \
  -H 'Accept: */*' \
  -H 'Origin: https://notegpt.io' \
  -H 'Referer: https://notegpt.io/ai-chat' \
  | jq -r '.data | to_entries | map("\(.key)=\(.value|@uri)") | join("&")')

If jq is not installed, use Python:

CFG=$(curl -sS 'https://notegpt.io/api/v1/ai-tab/get-prod-config' \
  -H 'Origin: https://notegpt.io' \
  -H 'Referer: https://notegpt.io/ai-chat' \
  | python3 -c 'import sys,json,urllib.parse; print(urllib.parse.urlencode(json.load(sys.stdin)["data"]))')

2. Send a chat request

curl -N -sS "https://notegpt.io/api/v2/llm/completions?$CFG" \
  -X POST \
  -H 'Content-Type: application/json' \
  -H 'Accept: */*' \
  -H 'Origin: https://notegpt.io' \
  -H 'Referer: https://notegpt.io/ai-chat' \
  --data-raw '{"text":"Reply with exactly PONG and nothing else.","end_flag":true,"streaming":true,"model":"gpt-4o-mini"}'

Full copy-paste version, including a fresh configuration fetch:

CFG=$(curl -sS 'https://notegpt.io/api/v1/ai-tab/get-prod-config' -H 'accept: */*' -H 'origin: https://notegpt.io' -H 'referer: https://notegpt.io/ai-chat' | python3 -c 'import json,sys,urllib.parse;print(urllib.parse.urlencode(json.load(sys.stdin)["data"]))')

curl -sS -N -m 120 -X POST "https://notegpt.io/api/v2/llm/completions?$CFG" \
-H 'Content-Type: application/json' \
-H 'Accept: */*' \
-H 'Origin: https://notegpt.io' \
-H 'Referer: https://notegpt.io/ai-chat' \
-d '{"text":"Hi","end_flag":true,"streaming":true,"model":"gpt-4o-mini"}'

3. Read the stream

A successful request returns SSE events similar to this:

id: <event-id>
event: message
data: {"message":"P","conversation_id":"<conversation-id>"}

id: <event-id>
event: message
data: {"message":"ONG","conversation_id":"<conversation-id>"}

id: <event-id>
event: message
data: [DONE]

Concatenate the message fields to obtain PONG. The [DONE] sentinel ends the response.

Note: During testing, the endpoint returned SSE even when streaming was set to false. Always parse the response as SSE rather than expecting a single JSON body.

4. Generate an image

Image generation uses a separate signed endpoint. The signature is produced by NoteGPT's own WASM signer, so it cannot be replaced by a static header or a simple HMAC. This repository includes a dependency-free Node helper that downloads the current public signer assets, recreates the browser checks the signer performs, and emits a signed request body plus an anonymous cookie:

node scripts/notegpt-sign.mjs \
  '{"image_urls":[],"type":60,"user_prompt":"A cinematic photo of a lighthouse at blue hour, calm sea, soft mist, ultra detailed","aspect_ratio":"16:9","num":1,"sub_type":32,"resolution":"1K","version":"flare"}' \
  > image-request.json

Full copy-paste version, including the start call and a polling loop:

node scripts/notegpt-sign.mjs \
  '{"image_urls":[],"type":60,"user_prompt":"A cinematic photo of a lighthouse at blue hour, calm sea, soft mist, ultra detailed","aspect_ratio":"16:9","num":1,"sub_type":32,"resolution":"1K","version":"flare"}' \
  > image-request.json

BODY=$(jq -c .body image-request.json)
COOKIE=$(jq -r .cookie image-request.json)

RESP=$(curl -sS -X POST 'https://notegpt.io/api/v2/images/start' \
  -H 'Content-Type: application/json; charset=UTF-8' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'Origin: https://notegpt.io' \
  -H 'Referer: https://notegpt.io/ai-image-generator' \
  -H "Cookie: $COOKIE" \
  --data "$BODY")

echo "$RESP"

SID=$(echo "$RESP" | jq -r '.data.session_id // empty')
if [ -n "$SID" ]; then
  for i in $(seq 1 30); do
    STATUS=$(curl -sS "https://notegpt.io/api/v2/images/status?session_id=$SID" \
      -H 'Accept: application/json, text/plain, */*' \
      -H 'Referer: https://notegpt.io/ai-image-generator' \
      -H "Cookie: $COOKIE")
    echo "$STATUS"
    STATE=$(echo "$STATUS" | jq -r '.data.status // empty')
    case "$STATE" in
      succeeded|failed) break ;;
    esac
    sleep 6
  done
fi

A successful start returns a session identifier:

{
  "code": 100000,
  "message": "success",
  "data": {
    "session_id": "<session-id>"
  }
}

Quota note: A fresh anonymous cookie starts with times_left: 2. After one successful image, the same cookie returned times_left: 1, and further signed start requests returned {"code":164002,"message":"Please login in and try again."}. That response means the signature was accepted but the anonymous quota gate requires login; it is not a 164001 signing error. The practical free allowance was one image per anonymous session, and the server may also apply IP-level limits. The signature helper does not bypass this limit.


How It Works

graph LR
    A["Your app"] --> B["Config API"]
    A --> C["Chat API"]
    C --> D["SSE stream"]
    A --> E["Image API"]
    E --> F["Status polling"]
Loading
sequenceDiagram
    participant C as Client
    participant N as NoteGPT
    participant M as Model

    C->>N: GET get-prod-config
    N-->>C: short-lived params
    C->>N: POST completions with params
    N->>M: prompt and model
    M-->>N: generated text
    N-->>C: SSE messages
Loading

The chat flow is intentionally simple:

  1. The client requests a short-lived configuration object.
  2. The client appends every configuration field to the completion URL as query parameters.
  3. The client posts a JSON body containing the prompt, model, and stream controls.
  4. NoteGPT responds with SSE events containing incremental text and a conversation identifier.
  5. The client concatenates the message chunks until [DONE].

The image flow has one additional step: the browser signs the request, starts a job, then polls a status endpoint until the job succeeds or fails.


Configuration and Authentication

Chat configuration

GET https://notegpt.io/api/v1/ai-tab/get-prod-config

The response contains a data object with short-lived values. During testing the object included:

Field Purpose
t Server timestamp used by the request signature
nonce Random value for the current configuration
sign Signed value binding the configuration
secret_key Key material used by the web client
app_id Application identifier (nc_ai_ng in the config response)
uid Anonymous or session user identifier

The same response also exposed a separate public application identifier in the page configuration: notegpt_8c92b6. The chat request uses the configuration object as-is; do not mix values from different fetches.

Why fetch it every time?

The values are short-lived and tied to a timestamp and nonce. A configuration fetched earlier can stop working, and reusing another client's configuration is both unreliable and inappropriate. Fetch a fresh configuration per request when possible.

During testing, reusing a single configuration for several rapid requests produced intermittent 164001 errors. Fetching a fresh configuration before each request produced consistent successful responses for both verified models. If you cache, keep the TTL very short and refresh immediately on any parameter error.

The configuration's t value was exactly six hours ahead of the local clock, while the HTTP Date header matched the local clock. The chat endpoint accepted requests built with the returned t. Do not calculate or hardcode t yourself; use the value returned by the config endpoint.

Required headers

Header Value
Content-Type application/json
Accept */*
Origin https://notegpt.io
Referer https://notegpt.io/ai-chat

Some deployments may enforce additional browser fingerprinting or WAF checks. A normal server-side request with the headers above worked for the verified models.

Configuration hygiene

  • Fetch fresh values per request when reliability matters; avoid long-lived caches.
  • Never publish real t, nonce, sign, secret_key, or uid values in a repository.
  • Do not log the full configuration object in production.
  • Treat the config response as an opaque credential bundle, not as a stable API key.

Chat Endpoint

POST https://notegpt.io/api/v2/llm/completions?<url-encoded-config>

Request body

Field Type Required Description
text string Yes The user prompt sent to the model
end_flag boolean Yes Set to true to finish the generation
streaming boolean Yes Streaming flag; the server currently returns SSE regardless
model string Yes Model identifier such as gpt-4o-mini or gpt-4.1-mini
chat_mode string No One of standard, guided_learning, deep_think, agent

Minimal verified body:

{
  "text": "Reply with exactly PONG and nothing else.",
  "end_flag": true,
  "streaming": true,
  "model": "gpt-4o-mini"
}

Verified behavior

Test Result
gpt-4o-mini with a short prompt Success; SSE message chunks
gpt-4.1-mini with a short prompt Success; SSE message chunks
streaming: false SSE response, not a single JSON object
Missing or stale config Failure; refresh the configuration
Advanced models without an account session {"code":164001,"message":"missing params"}
Non-standard modes without an account session {"code":164001,"message":"wrong params"}

The two verified models are the safest starting point. Treat every other model as account- or credit-gated until you confirm it in your own session.

Response headers

A successful request uses an event stream. Your HTTP client should not buffer the entire body or try to parse it as a single JSON document.

content-type: text/event-stream

Use a streaming client with a generous read timeout. Long generations can keep the connection open for several minutes.


Response Format

Each event has an optional id, an event name, and a data payload:

id: <event-id>
event: message
data: {"message":"Hello","conversation_id":"<conversation-id>"}

Fields in the JSON payload:

Field Description
message The incremental text chunk for this event
conversation_id Identifier for the conversation

The stream ends with a data-only sentinel:

data: [DONE]

Parsing rules

  1. Split the stream on newline boundaries.
  2. Keep lines that start with data:.
  3. Strip the data: prefix and leading whitespace.
  4. Stop when the payload is [DONE].
  5. Otherwise parse the payload as JSON and append message to your output.
  6. Preserve conversation_id if you need to correlate turns.
  7. Handle partial lines: a network chunk can split a line in the middle.

Practical streaming notes

  • SSE comments or heartbeat lines may appear; ignore lines that do not start with data:.
  • An event can contain an empty message; skip empty chunks.
  • Do not assume one word per event. In testing, PONG arrived as P and ONG.
  • Do not assume event IDs are sequential or numeric.
  • If the connection closes without [DONE], treat the response as incomplete.

Chat Model Catalog

The NoteGPT web client contains a catalog of 33 chat models. The table below records the website model names, the model values used in requests, the Deep Think flag, the Web Search flag, and the credit metadata shown by the site.

Model model value Deep Think Web Search Credits
GPT-6 Astra gpt-6-astra Yes Yes 40
GPT-5.6 Sol gpt-5.6-sol Yes Yes 16
GPT-5.5 gpt-5.5 Yes Yes 16
GPT-5.2 gpt-5.2 Yes Yes 9
GPT-5.1 gpt-5.1 Yes Yes 5
GPT-5 gpt-5 Yes Yes 5
GPT-4.1 gpt-4.1 No Yes 6
GPT-5 Mini gpt-5-mini Yes No —
GPT-4.1 Mini gpt-4.1-mini No No —
GPT-4o Mini gpt-4o-mini No No —
Claude Fable 5.2 claude-fable-5-2 Yes Yes 32
Claude Sonnet 5 claude-sonnet-5 Yes Yes 8
Claude Fable 5 claude-fable-5 Yes Yes 40
Claude Mythos 5 claude-mythos-5 Yes Yes 40
Claude Opus 4.8 claude-opus-4-8 Yes Yes 18
Claude Opus 4.7 claude-opus-4-7 Yes Yes 18
Claude Haiku 4.5 claude-haiku-4-5 Yes Yes 3
Claude Sonnet 4.5 claude-sonnet-4-5 Yes Yes 9
Gemini 3.8 Flash gemini-3.8-flash Yes No 3
Gemini 3.7 Flash gemini-3.7-flash Yes No 3
Gemini 3.1 Flash-Lite Preview gemini-3.1-flash-lite No No —
Gemini 3.5 Flash gemini-3.5-flash Yes No 5
Gemini 3 Flash Preview gemini-3-flash-preview Yes No 5
Gemini 3.1 Pro gemini-3.1-pro Yes No 8
Gemini 3 Pro gemini-3-pro Yes No 8
DeepSeek V4 Pro deepseek-v4-pro Yes Yes 18
DeepSeek V4 Flash deepseek-v4-flash No Yes —
DeepSeek V3.2 deepseek-reasoner Yes Yes —
DeepSeek V3 TA deepseek-chat No Yes —
DeepSeek R1 TA deepseek-reasoner-ta Yes Yes —
Kimi K3 kimi-k3 Yes Yes 10
GLM-5.2 glm-5.2 Yes Yes 4
MiniMax M3 minimax-m3 No Yes —

Notes on the catalog

  • Verified anonymously: gpt-4o-mini and gpt-4.1-mini returned successful SSE responses during testing.
  • Account-gated in testing: many advanced models returned 164001 without an authenticated or credit-backed session. This does not prove they are permanently unavailable; it means anonymous requests were rejected.
  • Mythos alias: the web client remaps claude-mythos-5 to claude-fable-5 in some UI paths. If you test the Mythos option, verify which identifier the browser actually sends.
  • Credit values are UI metadata: they were read from the client catalog and can change at any time. A dash means the catalog did not advertise a credit cost for that entry.
  • Deep Think and Web Search flags indicate which UI toggles are offered for a model; they do not guarantee that the flags can be forced anonymously.
  • The server-side model list is narrower: the public model-config endpoint returned only gpt-4.1-mini in its model list during testing, while the website exposed the full catalog. The website catalog is the complete UI surface; the server endpoint is a restricted configuration view.

Chat Modes

The client exposes four chat modes through the chat_mode field:

Mode chat_mode value Intended behavior Anonymous status
Standard standard Normal conversational response Verified
Guided Learning guided_learning Step-by-step tutoring and explanations Rejected anonymously in testing
Deep Think deep_think Extended reasoning for supported models Rejected anonymously in testing
Agent agent Tool-style, multi-step assistant mode Rejected anonymously in testing

Mode selection rules

  • Omit chat_mode or set it to standard for the verified path.
  • Use api-style clients with one mode per request; modes are not combinable.
  • The web UI may choose a mode automatically based on the selected model.
  • Advanced modes appear to require an authenticated or credit-backed session. Do not assume that adding chat_mode alone unlocks them.

Mode examples

Standard mode (verified)
{
  "text": "Explain the difference between HTTP and HTTPS in two sentences.",
  "end_flag": true,
  "streaming": true,
  "model": "gpt-4.1-mini",
  "chat_mode": "standard"
}

This is the safest documented request shape.

Guided Learning mode (account-gated in tests)
{
  "text": "Teach me recursion step by step and check my understanding after each step.",
  "end_flag": true,
  "streaming": true,
  "model": "gpt-4.1-mini",
  "chat_mode": "guided_learning"
}

Anonymous requests using this mode returned 164001 during testing. Use the website's Guided Learning experience unless you have a valid session and credits.

Deep Think mode (account-gated in tests)
{
  "text": "Design a normalized database schema for a multi-tenant task manager.",
  "end_flag": true,
  "streaming": true,
  "model": "gpt-5.2",
  "chat_mode": "deep_think"
}

Both the advanced model and the mode were rejected anonymously. Deep Think is best tested interactively on the website first.

Agent mode (account-gated in tests)
{
  "text": "Plan a three-step workflow to summarize a folder of documents.",
  "end_flag": true,
  "streaming": true,
  "model": "gpt-5.1",
  "chat_mode": "agent"
}

Agent mode is UI-oriented and may depend on additional client state. Treat it as experimental.


Changing the Model

The only change required to try another model is the model field. Keep the rest of the request shape constant while testing.

Verified model switch

# Reuse the fresh CFG variable from the Quick Start section.

for MODEL in gpt-4o-mini gpt-4.1-mini; do
  echo "--- $MODEL ---"
  curl -N -sS "https://notegpt.io/api/v2/llm/completions?$CFG" \
    -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: */*' \
    -H 'Origin: https://notegpt.io' \
    -H 'Referer: https://notegpt.io/ai-chat' \
    --data-raw "{\"text\":\"Say hello in one short sentence.\",\"end_flag\":true,\"streaming\":true,\"model\":\"$MODEL\"}"
done

Advanced model attempt

{
  "text": "Write a concise product update for a developer audience.",
  "end_flag": true,
  "streaming": true,
  "model": "claude-fable-5"
}

An anonymous attempt with this model returned 164001. If you are testing from a browser session with credits, compare the browser request with this shape and reuse only your own session state.

Model selection tips

  • Start with gpt-4o-mini to validate connectivity and SSE parsing.
  • Move to gpt-4.1-mini to confirm that the model field is respected.
  • Try one advanced model at a time and reset the configuration between tests.
  • If every request fails with 164001, refresh the config before changing the model.
  • If only advanced models fail, the issue is likely account, credits, or model entitlement rather than your SSE code.
  • Avoid parallel bursts of model probes; throttle tests and respect the site.

Streaming Parsers

Python

import json
import requests

BASE = "https://notegpt.io"
HEADERS = {
    "Accept": "*/*",
    "Origin": BASE,
    "Referer": f"{BASE}/ai-chat",
}

config_response = requests.get(
    f"{BASE}/api/v1/ai-tab/get-prod-config",
    headers=HEADERS,
    timeout=30,
)
config_response.raise_for_status()
config = config_response.json()["data"]

payload = {
    "text": "Reply with exactly PONG and nothing else.",
    "end_flag": True,
    "streaming": True,
    "model": "gpt-4o-mini",
}

with requests.post(
    f"{BASE}/api/v2/llm/completions",
    params=config,
    headers={**HEADERS, "Content-Type": "application/json"},
    json=payload,
    stream=True,
    timeout=120,
) as response:
    response.raise_for_status()
    for raw_line in response.iter_lines(decode_unicode=True):
        if not raw_line or not raw_line.startswith("data:"):
            continue
        data = raw_line[5:].strip()
        if data == "[DONE]":
            break
        try:
            event = json.loads(data)
        except json.JSONDecodeError:
            continue
        chunk = event.get("message")
        if chunk:
            print(chunk, end="", flush=True)

print()

requests URL-encodes dictionary values when passed through params, so the configuration fields do not need manual encoding.

Node.js

const BASE = "https://notegpt.io";
const headers = {
  Accept: "*/*",
  Origin: BASE,
  Referer: `${BASE}/ai-chat`,
};

const configResponse = await fetch(`${BASE}/api/v1/ai-tab/get-prod-config`, {
  headers,
});
const { data: config } = await configResponse.json();
const params = new URLSearchParams(config);

const response = await fetch(`${BASE}/api/v2/llm/completions?${params}`, {
  method: "POST",
  headers: { ...headers, "Content-Type": "application/json" },
  body: JSON.stringify({
    text: "Reply with exactly PONG and nothing else.",
    end_flag: true,
    streaming: true,
    model: "gpt-4o-mini",
  }),
});

const reader = response.body.getReader();
const decoder = new TextDecoder();
let buffer = "";
let finished = false;

while (!finished) {
  const { value, done } = await reader.read();
  if (done) break;

  buffer += decoder.decode(value, { stream: true });
  const lines = buffer.split("\n");
  buffer = lines.pop();

  for (const line of lines) {
    if (!line.startsWith("data:")) continue;
    const data = line.slice(5).trim();
    if (data === "[DONE]") {
      finished = true;
      break;
    }
    try {
      const event = JSON.parse(data);
      if (event.message) process.stdout.write(event.message);
    } catch {
      // Ignore partial or non-JSON events.
    }
  }
}

process.stdout.write("\n");

Parsing checklist

  • Keep a buffer for incomplete lines.
  • Strip \r on Windows-style line endings if present.
  • Stop at the first [DONE].
  • Ignore empty message chunks.
  • Store conversation_id separately from the text.
  • Set a client-side idle timeout so a stalled connection does not hang forever.

Image Generation

NoteGPT's image generator is available at:

https://notegpt.io/ai-image-generator

The page offers Nano Banana, Seedream, and GPT Image families with style presets, aspect ratios, resolution controls, and reference-image support. The interface advertises 2 free images daily; after one successful anonymous image, further starts from the same session were gated at 164002 and required login.

Using the image generator

  1. Open https://notegpt.io/ai-image-generator.
  2. Pick a model from the model selector.
  3. Choose an aspect ratio or leave it on Auto.
  4. Choose a resolution when the model supports it.
  5. Optionally upload one or more reference images.
  6. Enter a detailed prompt.
  7. Click Generate.
  8. Wait for the job to finish and download the result.

The official UI is the reference implementation. It handles the short-lived request signature, the anonymous session cookie, job creation, and status polling. The signed recipe in Quick Start reproduces the same flow; the UI remains the simplest option when the free quota matters.

Image capabilities by family

Family Strengths
Nano Banana Fast generation and editing with strong prompt following
Nano Banana Pro Highest-quality detail and text rendering
Nano Banana 2 High-quality generation with broad aspect ratios
Nano Banana 2 Lite Lower-cost, faster generation
Nano Banana 2.1 4K output, text editing, and multi-image composition
Seedream 5.0 Pro Fast, inexpensive generation
Seedream 5.5 Multi-round editing and high-resolution variants
GPT Image 2 General high-quality generation
GPT Image 2.5 Precise edits and detailed prompt adherence
GPT Image 2.6 GIF and SVG output support

Image workflow

graph LR
    A["Choose model"] --> B["Set ratio and resolution"]
    B --> C["Write prompt"]
    C --> D["Start job"]
    D --> E["Poll status"]
    E --> F["Download results"]
Loading

Image Model Catalog

The website catalog below was extracted from the image generator client. sub_type is the numeric model variant sent with generation jobs.

Model model sub_type Free tier Credits Notes
Nano Banana nano-banana 3 2/day 6 Fastest Nano Banana option
Nano Banana Pro nano-banana-pro 11 No 24+ Highest quality
Nano Banana 2 nano-banana-2 17 No 12+ High quality
Nano Banana 2 Lite nano-banana-2-lite 26 No 6 Lower-cost variant
Seedream 5.0 Pro seedream_5_pro 28 No 12+ Fast generation
GPT Image 2 gpt-image-2 19 2/day 6+ General generation
GPT Image 2.5 gpt-image-2-5 32 2/day 6+ Precise editing
Nano Banana 2.1 nano-banana-2-1 33 2/day 4+ 4K and text editing
GPT Image 2.6 gpt-image-2-6 34 2/day 6+ GIF and SVG output
Seedream 5.5 seedream-5-5 35 2/day 4+ Multi-round editing

Model aliases

The client maps UI identifiers to backend identifiers. Common aliases:

UI alias Backend model
nano nano_banana
nano2 nano_banana_2
nano-banana-2-1 nano_banana_2_1
nanopro nano_banana_pro
gpt-image-2 gpt_image_2
gpt-image-2-5 gpt_image_2_5
gpt-image-2-6 gpt_image_2_6
nano2-lite nano_banana_2_lite
seedream_5_pro seedream_5_pro
seedream-5-5 seedream_5_5

Supported controls

Control Values
Aspect ratio auto, 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
Resolution 1k, 2k, 4k; Seedream 5.5 also exposes intermediate sizes
Background auto or model-specific values
Format png by default; GPT Image 2.6 adds GIF and SVG options
Number of images 1 to multiple, subject to model limits
Reference images Supported on editing and multi-image models
Upscale Optional on supported models

Not every model supports every control. The UI hides unsupported combinations.


Image API Reference

Verified with a client-side signature. The endpoints below are used by the NoteGPT web client. They require a short-lived signature and an anonymous session cookie. A live run using the step 4 helper returned 100000 with session 3b8d6a2f-1264-405f-a3cb-73da7ca5dfa0; the status endpoint then returned succeeded with one PNG. Unsigned or HMAC-only attempts return 164001; a valid signature advances to 164002 when the anonymous quota gate requires login. The remaining limit is server-side and cannot be bypassed by changing the signature.

Endpoints

Method Path Purpose
POST /api/v2/images/start Start an image generation job
GET /api/v2/images/status Poll a job by session_id
GET /api/v2/images/left-times Check remaining free image attempts
GET /api/v2/images/list List generated images
GET /api/v2/images/detail Fetch one image record
POST /api/v2/images/delete Delete an image
POST /api/v2/images/favorite Favorite or unfavorite an image
GET /api/v2/images/favorite/list List favorites
POST /api/v2/images/prompt/optimize Optimize an image prompt

Session cookie

The image API uses an anonymous session cookie:

anonymous_user_id=<uuid>

During testing:

  • Without the cookie, left-times, start, and status returned {"code":164003,"message":"login expired"}.
  • A new UUID cookie returned {"code":100000,"message":"success","data":{"times_left":2}}.
  • After one successful job, the same UUID cookie returned times_left: 1; further signed start calls returned 164002.
  • With the same cookie, list returned an empty image list successfully.

The cookie is necessary but not sufficient for starting a job. The request also needs the client signature described below, and the free quota still applies.

Start request shape

The browser client builds a JSON body with generation options plus authentication fields:

Field Type Description
image_urls array Reference image URLs; empty for text-to-image
type number Job type; 60 for image generation
user_prompt string Image prompt
aspect_ratio string Ratio such as 16:9, or auto
num number Number of images requested
model string Backend model identifier; variant-specific, omitted for sub_type 32
sub_type number Numeric variant from the image catalog
upscale boolean Whether to upscale; variant-specific
resolution string 1k, 2k, or 4k where supported; sub_type 32 uses 1K
model_level string premium in some observed client payloads
style string Optional style preset
format string Output format such as png
background string Background handling such as auto
mask_url string Optional mask for editing
t number Unix timestamp in seconds
app_id string Public application identifier from the page
sign string Short-lived signature generated by the client

Optional fields observed for specific variants:

  • version: "flare" for sub_type 32 and 34.
  • format and background for sub_type 35.
  • size and background_color for sub_type 16.

Verified request body for sub_type 32. It deliberately omits model, upscale, and model_level, uses uppercase 1K, and adds version: "flare":

{
  "image_urls": [],
  "type": 60,
  "user_prompt": "A cinematic photo of a lighthouse at blue hour, calm sea, soft mist, ultra detailed",
  "aspect_ratio": "16:9",
  "num": 1,
  "sub_type": 32,
  "resolution": "1K",
  "version": "flare",
  "t": 1764470000,
  "app_id": "notegpt_8c92b6",
  "sign": "<short-lived site signature>"
}

Variant fields for sub_type 35 use a different shape:

{
  "image_urls": [],
  "type": 60,
  "user_prompt": "A cinematic photo of a lighthouse at blue hour, calm sea, soft mist, ultra detailed",
  "aspect_ratio": "16:9",
  "num": 1,
  "sub_type": 35,
  "model": "seedream-5.5",
  "format": "png",
  "background": "auto",
  "upscale": 2,
  "resolution": "1k",
  "version": "flare"
}

The t values above are illustrative. The signer adds a fresh timestamp and app_id automatically. Never hardcode a captured sign.

Signature generation

The site's client builds a canonical string from the request fields:

  1. Take all fields except the signature itself.
  2. Sort the keys alphabetically.
  3. Drop fields whose value is undefined.
  4. Encode arrays and objects as compact JSON, with object keys sorted.
  5. Join entries as key=value with &.
  6. Pass the canonical string to the site's client-side signer.
  7. Send the returned signature as sign, along with t and app_id.

The signer is bundled with the web client and produces a long, non-deterministic signature. It is not a static API key and it is not reproducible with a simple HMAC secret: the WASM signer checks browser values, including navigator.webdriver and the measured width of a hidden three-column <div>.

This repository ships scripts/notegpt-sign.mjs, which downloads the current public signer chunk and WASM, supplies the DOM values the signer checks, and signs a fresh body. It requires Node 18 or newer, has no npm dependencies, and is used in step 4. Generate a new signature for every request; do not reuse or publish captured signatures.

Start response

A successful start returns a session identifier. A live anonymous run using the step 4 helper returned 100000 with session 3b8d6a2f-1264-405f-a3cb-73da7ca5dfa0:

{
  "code": 100000,
  "message": "success",
  "data": {
    "session_id": "<session-id>"
  }
}

Two failure responses matter:

{
  "code": 164001,
  "message": "wrong params",
  "data": null
}

164001 means the signature or body was rejected before generation. Unsigned requests, HMAC-only signatures, and Node shims that failed the signer's browser checks all returned this code.

{
  "code": 164002,
  "message": "Please login in and try again.",
  "data": null
}

164002 means the signature was accepted, but the anonymous quota gate requires login. A valid signer returns this after the session has consumed its free image; it is not a signing failure.

Status polling

GET /api/v2/images/status?session_id=<session-id>

The client polls until the job reaches a terminal state. A live poll from the verified run returned status: succeeded with one result:

{
  "code": 100000,
  "message": "success",
  "data": {
    "status": "succeeded",
    "results": [
      {
        "prediction_id": "task_01M8NGV9PZ76YVXAJE6TZBAKF5",
        "status": "succeeded",
        "error": "",
        "input_urls": [],
        "url": ["https://cdn.ng-resource.com/.../<result>.png"],
        "image_id": "img_01a22b0e-0545-7c28-b7ac-6a3d1f3077a4"
      }
    ]
  }
}

The status endpoint is simpler than start: the client calls it without the generation signature, using the job's session_id and the anonymous session cookie.

curl -sS "https://notegpt.io/api/v2/images/status?session_id=$SID" \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'Referer: https://notegpt.io/ai-image-generator' \
  -H "Cookie: anonymous_user_id=<uuid>"

Without the cookie, the status call returns 164003 login expired.

Polling guidance

  • Poll every 3 seconds.
  • Stop when status is succeeded or failed.
  • Add a maximum wait of 5 minutes.
  • Handle multiple results: url is an array.
  • Treat network errors as retryable with backoff.
  • Do not start a new job while an existing one is still processing.
  • Respect the free-tier limit and credit balance.

Image error codes

Code Meaning Action
100000 Success Continue
164001 Wrong or missing params Check payload, signature, timestamp, and model
164002 Please login in and try again Signature accepted; anonymous image quota is exhausted or login is required
164003 Login expired Set a fresh anonymous_user_id cookie
164005 Upgrade or credits required Use a free-eligible model or add credits
Other Server or validation error Log the message and retry only if appropriate

Use Cases

Chat and knowledge work

  1. General AI assistant — build a minimal chat UI around the verified SSE endpoint.
  2. Study companion — ask for explanations, summaries, and practice questions.
  3. Coding helper — generate snippets, explain errors, and review code.
  4. Translation and language practice — translate text and request grammar feedback.
  5. Content drafting — outlines, introductions, product descriptions, and social captions.
  6. SEO planning — keyword clusters, title variants, and meta descriptions.
  7. Email and messaging — rewrite tone, shorten drafts, or draft replies.
  8. Research Q&A — turn notes into structured answers and follow-up questions.
  9. Documentation helper — convert rough notes into readable guides.
  10. Customer support assistant — draft responses and summarize support threads.

Bots and automation

  1. Telegram bot — stream NoteGPT replies into a chat.
  2. Discord bot — answer questions in a channel or thread.
  3. CLI assistant — query a model from a terminal alias or shell function.
  4. IDE or editor integration — send selected text and display streamed output.
  5. Scheduled content digest — generate a daily summary with GitHub Actions.
  6. n8n workflow — connect NoteGPT to forms, sheets, and notification tools.

Image generation

  1. Social media visuals — thumbnails, quote cards, and post images.
  2. Product mockups — lifestyle scenes, clean backgrounds, and promotional art.
  3. Professional portraits — headshots and profile images with style presets.
  4. Concept art and storyboards — explore visual directions from text prompts.
  5. Marketing assets — banners, hero images, and campaign variations.
  6. Image editing — remove or replace backgrounds, extend scenes, and refine details.

Education and prototyping

  1. Classroom demos — show live streaming model output.
  2. API prototypes — test an SSE client, proxy, or bot before building a product.
  3. Prompt experiments — compare model behavior across prompts and styles.
  4. Workflow validation — verify a content pipeline before adding a paid backend.

Integration Recipes

Telegram bot with streaming replies
import json
import os
import requests

BASE = "https://notegpt.io"
HEADERS = {
    "Accept": "*/*",
    "Origin": BASE,
    "Referer": f"{BASE}/ai-chat",
}
BOT_TOKEN = os.environ["TELEGRAM_BOT_TOKEN"]

def note_gpt(prompt: str) -> str:
    config = requests.get(
        f"{BASE}/api/v1/ai-tab/get-prod-config",
        headers=HEADERS,
        timeout=30,
    ).json()["data"]

    chunks = []
    with requests.post(
        f"{BASE}/api/v2/llm/completions",
        params=config,
        headers={**HEADERS, "Content-Type": "application/json"},
        json={
            "text": prompt,
            "end_flag": True,
            "streaming": True,
            "model": "gpt-4o-mini",
        },
        stream=True,
        timeout=120,
    ) as response:
        response.raise_for_status()
        for line in response.iter_lines(decode_unicode=True):
            if not line or not line.startswith("data:"):
                continue
            data = line[5:].strip()
            if data == "[DONE]":
                break
            try:
                event = json.loads(data)
            except json.JSONDecodeError:
                continue
            if event.get("message"):
                chunks.append(event["message"])
    return "".join(chunks).strip()

def send_message(chat_id: int, text: str) -> None:
    requests.post(
        f"https://api.telegram.org/bot{BOT_TOKEN}/sendMessage",
        json={"chat_id": chat_id, "text": text[:4000]},
        timeout=30,
    )

def main() -> None:
    offset = None
    while True:
        params = {"timeout": 30}
        if offset is not None:
            params["offset"] = offset
        updates = requests.get(
            f"https://api.telegram.org/bot{BOT_TOKEN}/getUpdates",
            params=params,
            timeout=40,
        ).json()
        for update in updates.get("result", []):
            offset = update["update_id"] + 1
            message = update.get("message", {})
            text = message.get("text")
            chat_id = message.get("chat", {}).get("id")
            if text and chat_id:
                try:
                    send_message(chat_id, note_gpt(text))
                except Exception as error:
                    send_message(chat_id, f"Request failed: {error}")

if __name__ == "__main__":
    main()

Keep the bot responsive by limiting prompt length and handling failures per message.

FastAPI proxy with fresh config and SSE passthrough
import requests
from fastapi import FastAPI
from fastapi.responses import StreamingResponse

BASE = "https://notegpt.io"
HEADERS = {
    "Accept": "*/*",
    "Origin": BASE,
    "Referer": f"{BASE}/ai-chat",
}

app = FastAPI()

def get_config() -> dict:
    response = requests.get(
        f"{BASE}/api/v1/ai-tab/get-prod-config",
        headers=HEADERS,
        timeout=30,
    )
    response.raise_for_status()
    return response.json()["data"]

@app.get("/chat")
def chat(prompt: str, model: str = "gpt-4o-mini"):
    config = get_config()

    def stream():
        with requests.post(
            f"{BASE}/api/v2/llm/completions",
            params=config,
            headers={**HEADERS, "Content-Type": "application/json"},
            json={
                "text": prompt,
                "end_flag": True,
                "streaming": True,
                "model": model,
            },
            stream=True,
            timeout=120,
        ) as response:
            response.raise_for_status()
            yield from response.iter_content(chunk_size=None)

    return StreamingResponse(stream(), media_type="text/event-stream")

Fetch a fresh configuration per request for reliability. If load becomes a concern, use a very short cache and refresh immediately on 164001, and avoid exposing raw configuration values to clients.

n8n HTTP Request workflow
  1. Add an HTTP Request node.
  2. Set the method to GET.
  3. Set the URL to https://notegpt.io/api/v1/ai-tab/get-prod-config.
  4. Add headers Origin: https://notegpt.io and Referer: https://notegpt.io/ai-chat.
  5. Add a Code node that converts data into a query string with URL-encoded values.
  6. Add a second HTTP Request node.
  7. Set the method to POST.
  8. Set the URL to https://notegpt.io/api/v2/llm/completions and append the encoded query string.
  9. Send a JSON body with text, end_flag, streaming, and model.
  10. Enable response streaming if your n8n version supports it; otherwise use a short prompt to reduce latency.

The same pattern works in Make, Zapier, Windmill, and similar automation tools that support custom HTTP requests.

GitHub Actions daily digest
name: daily-note

on:
  schedule:
    - cron: "0 8 * * *"
  workflow_dispatch:

jobs:
  generate:
    runs-on: ubuntu-latest
    steps:
      - name: Fetch configuration
        run: |
          curl -sS 'https://notegpt.io/api/v1/ai-tab/get-prod-config' \
            -H 'Origin: https://notegpt.io' \
            -H 'Referer: https://notegpt.io/ai-chat' \
            -o config.json
          CFG=$(jq -r '.data | to_entries | map("\(.key)=\(.value|@uri)") | join("&")' config.json)
          echo "CFG=$CFG" >> "$GITHUB_ENV"

      - name: Generate digest
        run: |
          curl -N -sS "https://notegpt.io/api/v2/llm/completions?$CFG" \
            -X POST \
            -H 'Content-Type: application/json' \
            -H 'Accept: */*' \
            -H 'Origin: https://notegpt.io' \
            -H 'Referer: https://notegpt.io/ai-chat' \
            --data-raw '{"text":"Write a short motivational note for developers.","end_flag":true,"streaming":true,"model":"gpt-4o-mini"}' \
            > stream.txt
          grep '^data:' stream.txt | sed 's/^data: //' | grep -v '^\[DONE\]$' \
            | jq -r '.message // empty' | tr -d '\n' > digest.txt

      - name: Show digest
        run: cat digest.txt
Shell function for quick prompts
notegpt() {
  local prompt="$1"
  local model="${2:-gpt-4o-mini}"
  local cfg
  cfg=$(curl -sS 'https://notegpt.io/api/v1/ai-tab/get-prod-config' \
    -H 'Origin: https://notegpt.io' \
    -H 'Referer: https://notegpt.io/ai-chat' \
    | jq -r '.data | to_entries | map("\(.key)=\(.value|@uri)") | join("&")')

  curl -N -sS "https://notegpt.io/api/v2/llm/completions?$cfg" \
    -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: */*' \
    -H 'Origin: https://notegpt.io' \
    -H 'Referer: https://notegpt.io/ai-chat' \
    --data-raw "$(jq -nc --arg text "$prompt" --arg model "$model" \
      '{text:$text,end_flag:true,streaming:true,model:$model}')" \
    | sed -n 's/^data: //p' \
    | grep -v '^\[DONE\]$' \
    | jq -r '.message // empty' \
    | tr -d '\n'
  echo
}

Usage:

notegpt "Explain SSE in one paragraph."
notegpt "Write a haiku about terminals." gpt-4.1-mini
Browser-side fetch example
async function askNoteGPT(text, model = "gpt-4o-mini") {
  const base = "https://notegpt.io";
  const headers = {
    Accept: "*/*",
    Origin: base,
    Referer: `${base}/ai-chat`,
  };

  const configResponse = await fetch(`${base}/api/v1/ai-tab/get-prod-config`, {
    headers,
  });
  const { data: config } = await configResponse.json();
  const params = new URLSearchParams(config);

  const response = await fetch(`${base}/api/v2/llm/completions?${params}`, {
    method: "POST",
    headers: { ...headers, "Content-Type": "application/json" },
    body: JSON.stringify({
      text,
      end_flag: true,
      streaming: true,
      model,
    }),
  });

  const reader = response.body.getReader();
  const decoder = new TextDecoder();
  let buffer = "";
  let output = "";

  while (true) {
    const { value, done } = await reader.read();
    if (done) break;

    buffer += decoder.decode(value, { stream: true });
    const lines = buffer.split("\n");
    buffer = lines.pop();

    for (const line of lines) {
      if (!line.startsWith("data:")) continue;
      const data = line.slice(5).trim();
      if (data === "[DONE]") return output;
      try {
        const event = JSON.parse(data);
        if (event.message) output += event.message;
      } catch {
        // Wait for the next chunk.
      }
    }
  }

  return output;
}

A browser page calling NoteGPT directly may encounter CORS restrictions. Use a server-side proxy for production applications.


Prompt Patterns

The chat endpoint accepts a single text field, so prompt quality depends on clear instructions. These patterns work well across models.

Structured answer

Role: senior technical writer.
Task: explain server-sent events to a junior developer.
Format:
- One-sentence definition
- Three bullet points
- One short code example
Constraints: no marketing language, maximum 200 words.

Rewrite with constraints

Rewrite the following paragraph for clarity and confidence.
Keep every factual claim.
Use short sentences.
Return only the rewritten paragraph.

Paragraph:
<paste text>

Extraction

Extract the following fields from the text below.
Return valid JSON with keys: title, author, date, summary.
If a field is missing, use null.
Do not add commentary.

Text:
<paste text>

Comparison table

Compare these three options for a small team:
1. A managed vector database
2. A self-hosted vector database
3. Plain PostgreSQL with an extension

Return a Markdown table with columns: option, setup effort, cost, operational risk, best fit.
After the table, add one recommendation and one caveat.

Image prompt template

Subject: <main subject and action>
Environment: <location, time of day, weather>
Composition: <camera angle, framing, aspect ratio>
Lighting: <lighting style and mood>
Style: <photographic, illustration, 3D, editorial>
Details: <materials, colors, textures>
Constraints: <what to avoid>

Example:

Subject: a lone cyclist riding through a rain-soaked neon street at night
Environment: dense city, reflections on wet asphalt, distant traffic
Composition: low angle, 16:9, shallow depth of field
Lighting: cyan and magenta neon, cinematic contrast
Style: editorial photography, ultra detailed
Details: chrome bicycle, waterproof jacket, visible rain streaks
Constraints: no text, no logos, realistic anatomy

Prompting tips

  • Put the task first and the source material last.
  • State the output format explicitly.
  • Specify length, tone, and audience.
  • Use examples when formatting matters.
  • Ask for a single artifact rather than multiple alternatives.
  • For image prompts, describe lighting and composition, not just the subject.
  • Keep prompts within the website's practical limits.

Production Patterns

Configuration lifecycle

  • Fetch a fresh configuration per request for the most reliable behavior.
  • If caching, keep the TTL very short and refresh immediately on 164001 or 164003.
  • In testing, one reused configuration produced intermittent 164001 errors across rapid requests.
  • Use a single-flight lock so parallel requests do not stampede the config endpoint.
  • Never share configuration between unrelated users.

Streaming reliability

  • Use a read timeout longer than the longest expected generation.
  • Parse SSE incrementally; do not wait for the full response.
  • Keep a buffer for partial lines.
  • Treat a missing [DONE] as an incomplete response.
  • Retry network failures with exponential backoff.
  • Do not retry parameter errors; fix the request instead.

Fallbacks

  • Use gpt-4o-mini as the default verified model.
  • Fall back to gpt-4.1-mini if the first model is unavailable.
  • If streaming fails, retry once with a short non-streaming preference; the server may still return SSE, so keep the same parser.
  • For image generation, use the signed recipe in Quick Start; if it returns 164002, the anonymous quota gate is active, so wait for a reset or use the official UI.

Quotas and fairness

  • Limit concurrent chat requests per user.
  • Throttle model probes.
  • Respect the two-free-images-per-day tier.
  • Do not create large numbers of anonymous identities to bypass quotas.
  • Cache generated content when reuse is acceptable.

Observability

  • Log request latency, HTTP status, model, and error code.
  • Do not log configuration values, cookies, or signatures.
  • Track SSE completion rate and time to first token.
  • Record image job durations separately from chat latency.
  • Alert on sustained 164001 or 164003 responses; treat image 164002 as the expected anonymous quota gate rather than a signing bug.

Security

  • Keep a server-side proxy between public clients and NoteGPT.
  • Do not expose raw configuration or cookies to browsers.
  • Validate and cap user prompt lengths.
  • Sanitize model output before rendering it as HTML.
  • Use allowlists for models if you expose a model selector.
  • Apply standard authentication and rate limiting to your own API.

Error Codes

Code or status Message Meaning Recommended action
100000 success Request accepted Read the payload
164001 wrong params Invalid or incomplete parameters Check model, fields, signature, and timestamp
164001 missing params Required fields absent or entitlement missing Add required fields; verify account access
164002 failed Chat configuration or signature failure Refresh configuration
164002 Please login in and try again Image signature accepted; anonymous quota or login required Wait for the free quota to reset or use the official UI
164003 login expired Missing or invalid session Set a fresh anonymous_user_id cookie for image calls
164005 upgrade or credits required Free tier or credits exhausted Use a free-eligible model or add credits
HTTP 403 Forbidden WAF, origin, or rate-limit rejection Slow down, verify headers, try later
HTTP 429 Too many requests Rate limited Back off exponentially
HTTP 5xx Server error Upstream or gateway failure Retry with backoff
No [DONE] Incomplete stream Connection closed early Treat as partial and retry once

Distinguishing the two 164001 messages

  • wrong params usually means a field value, model identifier, or signature did not match expectations.
  • missing params usually appears when the request lacks an entitlement or a field that the server expects for an advanced path.

If you see either error repeatedly, first refresh the configuration, then retry with gpt-4o-mini, then simplify the body to the minimal verified shape.


Limits and Performance

Area Observed or documented behavior
Chat transport SSE, one event per text chunk
Chat configuration Short-lived; fetch fresh per request for reliable results
Verified models gpt-4o-mini, gpt-4.1-mini
Advanced chat models Account or credit gated in anonymous tests
Chat modes Only standard verified anonymously
Client prompt cap The web client truncates long prompts around 100,000 characters
Image prompt cap The image client limits prompts to roughly 5,000 characters
Free images 2 per day
Image polling About every 3 seconds
Image result shape url is an array
Chat conversation Response includes conversation_id
Rate limiting Not published; apply conservative limits

Latency expectations

  • Time to first token depends on the model and server load.
  • Short prompts usually begin streaming within a few seconds.
  • Advanced reasoning models may take longer before the first chunk.
  • Image generation can take tens of seconds; poll patiently.
  • Network conditions and WAF checks can add overhead.

Context behavior

The response includes a conversation_id, which indicates that conversations are tracked. The simple completions request documented here does not include a verified history field. Do not assume multi-turn memory unless you confirm the exact request behavior in your own session. The website may send additional state that this minimal recipe does not.


Security and Privacy

  • Do not commit configuration values. Treat t, nonce, sign, secret_key, and uid as short-lived credentials.
  • Do not publish cookies. The anonymous_user_id value identifies a session and should stay private.
  • Do not reuse signatures. A signature is tied to a request and a moment in time.
  • Respect rate limits. Aggressive testing can degrade service for other users.
  • Protect user prompts. Chat and image prompts may contain personal or confidential data. Do not log them unnecessarily.
  • Sanitize output. Model responses are untrusted text. Escape HTML before rendering.
  • Use HTTPS. Never send requests or cookies over plain HTTP.
  • Review terms. Confirm that your use case complies with NoteGPT's terms and applicable law.

Troubleshooting

Symptom Likely cause Fix
Empty response body Buffering proxy or wrong endpoint Disable buffering; verify the completion URL
JSON parse error on the whole body Response is SSE, not JSON Parse data: lines incrementally
164001 wrong params Bad config or model payload Refresh config; retry with gpt-4o-mini
164001 missing params Entitlement or required field absent Verify account access and request fields
164002 failed Expired or invalid configuration Fetch a fresh configuration
164003 login expired Missing image session cookie Set a fresh anonymous_user_id UUID
164005 Free tier or credits exhausted Use a free-eligible option or add credits
HTTP 403 WAF or origin rejection Check Origin and Referer; slow down
No [DONE] Stream interrupted Retry once and log the partial output
Image start always fails Signature or client state mismatch Use the official image UI
Browser CORS error Direct browser calls blocked Proxy through your server
Model switch ignored Wrong field or stale config Send model in the JSON body; refresh config
Intermittent 164001 on repeated requests A reused or stale configuration Fetch a fresh configuration before each request

Minimal debugging sequence

  1. Fetch the configuration and confirm it contains the expected fields.
  2. Send the exact Quick Start request with gpt-4o-mini.
  3. Parse the raw stream without any framework or proxy.
  4. Switch only the model field.
  5. Add chat_mode only after the basic request works.
  6. For images, verify the cookie with left-times, then use the official UI for generation.

Compatibility

Client or platform Notes
curl Works for verified chat calls; use -N to disable buffering
Python requests Use stream=True and iter_lines
Python httpx Use client.stream and iterate lines
Node.js 18+ Use fetch with a ReadableStream reader
Deno and Bun Standard fetch streaming works
Go Use bufio.Scanner over the response body
PHP Use cURL with CURLOPT_WRITEFUNCTION for streaming
Postman Use the streaming response view; SSE support varies
n8n Use HTTP Request plus a Code node for query encoding
Serverless functions Watch execution time limits for long generations

Language-agnostic rules

  • Do not assume a JSON content type.
  • Do not read the full body before processing.
  • Handle chunk boundaries explicitly.
  • Keep request headers close to the website values.
  • Prefer server-side calls over direct browser calls.

FAQ

Is NoteGPT free?

The website offers free chat access and advertises two free image generations per day. Advanced models and some modes consume credits or require an account. The exact limits can change.

Do I need an API key?

No static API key is required for the verified chat path. Instead, fetch the short-lived configuration from the public config endpoint and pass it as query parameters. The image path additionally uses an anonymous session cookie and a client-generated signature.

Why does the response look like plain text with `data:` lines?

The endpoint streams Server-Sent Events. Each event carries a JSON payload with a message field. Concatenate the messages and stop at [DONE].

Why does `streaming: false` still return SSE?

During testing, the server returned SSE regardless of the streaming flag. Treat SSE as the current response format and keep the parser enabled.

Which models are verified?

gpt-4o-mini and gpt-4.1-mini returned successful SSE responses anonymously. Other models are documented from the website catalog, but anonymous requests were rejected during testing.

Why do advanced models return `164001`?

The server likely requires an authenticated or credit-backed session for those models. The error alone does not prove the model is broken. Test interactively on the website and inspect your own browser request if you have access.

How do I switch models?

Change the model field in the JSON body. Keep the configuration fresh. Start with the two verified models before trying advanced entries.

How do I enable Deep Think or Agent mode?

Send the corresponding chat_mode value. In anonymous testing, only standard was accepted. The other modes appear to require an account or credits, and the website may send additional client state.

Can I generate images through the API?

The website uses /api/v2/images/start and /api/v2/images/status, and the flow now has a verified signed recipe in Quick Start. Start requests need a short-lived signature plus an anonymous session cookie. A valid signature returns 100000 on a fresh anonymous cookie, or 164002 when the quota gate requires login. The helper in scripts/notegpt-sign.mjs generates the signature.

How many free images do I get?

The image page advertises two free images per day. A fresh anonymous cookie returned times_left: 2, but after one success the same cookie returned times_left: 1 and further signed starts required login. The practical anonymous allowance was one image per session; the server may also apply IP-level limits. Limits may change.

Can I keep a conversation going?

Responses include a conversation_id. The minimal request documented here does not include a verified history field, so do not assume server-side memory. The website may maintain additional state that this recipe does not replicate.

Is there a system prompt field?

No separate system field is documented for this endpoint. Put role and behavior instructions at the start of the text field, or use the website's guided modes.

Can I use this commercially?

This repository is unofficial documentation. Commercial use depends on NoteGPT's terms and the terms of the underlying model providers. Review those terms before building a product.

Why did my request work yesterday but fail today?

The configuration is short-lived and the website changes frequently. Refresh the config, retry with a verified model, and check whether the site now requires an additional header or session value.

How do I report a change?

Open an issue with the date, endpoint, request shape, response code, and a redacted response. Never include real signatures, cookies, or configuration values.


Glossary

Term Meaning
SSE Server-Sent Events, a one-way streaming format over HTTP
Config The short-lived object returned by get-prod-config
SSE event A block containing id, event, and data lines
Sentinel The [DONE] marker that ends a chat stream
chat_mode The mode selector: standard, guided learning, deep think, or agent
Deep Think A reasoning-focused mode or model flag
Web Search A model flag indicating web-search capability in the UI
sub_type The numeric image model variant used by the generator
session_id The identifier returned when an image job starts
anonymous_user_id The cookie that identifies an anonymous image session
Credits The website's usage currency for advanced models and images
Free tier The two-free-images-per-day allowance advertised by the site

Roadmap

  • Document the chat configuration endpoint
  • Verify anonymous chat with gpt-4o-mini and gpt-4.1-mini
  • Document the 33-model chat catalog
  • Document all four chat modes
  • Document the 10-model image catalog
  • Document image endpoints, cookies, and error codes
  • Add curl, Python, Node.js, bot, proxy, and automation examples
  • Publish a Postman collection
  • Publish an OpenAPI description for the verified chat path
  • Add more verified advanced-model examples from authenticated sessions
  • Add a browser-extension integration guide
  • Add a video walkthrough

Contributing

Contributions that improve accuracy are welcome.

  1. Open an issue describing the change or correction.
  2. Include the date, endpoint, and a redacted request and response.
  3. Do not include signatures, cookies, tokens, or personal data.
  4. Keep examples minimal and runnable.
  5. Test changes against the live site before submitting.
  6. Update the "Last verified" date when behavior changes.

Please keep the documentation respectful of NoteGPT's service and terms. Do not submit scraped credentials, bypass techniques, or instructions for abusive traffic.


Star History

Star History Chart


Maintainers

Scrap-api    Grexlabs

Scrap-api and Grexlabs

Scrap-api is powered by GREXLABS.


Disclaimer

This project is unofficial and is not affiliated with NoteGPT. All trademarks and model names belong to their respective owners. The endpoints and behaviors documented here were observed from public web traffic and are provided for educational and research purposes. They may change at any time. You are responsible for complying with NoteGPT's terms of service, applicable laws, and the policies of any model provider. Do not use this documentation to abuse, overload, or circumvent limits on any service.

footer

Built for builders. Documented with care.

Back to top

About

NoteGPT (notegpt.io) - free AI chat and image generation scrap API docs, model catalog, examples, use cases and integrations.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages