sub2api icon indicating copy to clipboard operation
sub2api copied to clipboard

Can this sub2api let us call the api directly??

Open Maxch3306 opened this issue 11 months ago • 2 comments

Can make the sub as the direct api not only for claude code or codex, like normal chat

Maxch3306 avatar Dec 29 '25 08:12 Maxch3306

Hi @Maxch3306,

Sub2API now supports direct API calls, eliminating the need for Claude Code or Codex.

Quick Start:

curl https://your-instance.com/v1/messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"model": "claude-3-5-sonnet-20241022", "messages": [...]}'

Supported Formats:

  • /v1/messages - Claude API format
  • /v1/responses - OpenAI Responses API format
  • /v1beta/* - Gemini API format

IanShaw027 avatar Dec 29 '25 10:12 IanShaw027

HI @IanShaw027

Thanks for your message, I means just call it as normal claude without the claude code frame

Maxch3306 avatar Jan 08 '26 17:01 Maxch3306