Head to head · LLM inference · October 2026 research run

Gemini 4 Hydrogen vs Writer Palmyra API

Gemini 4 Hydrogen and Writer Palmyra API score within a point of each other on agent readiness, 64.9 (B) and 64.7 (B). Writer Palmyra API leads on security & auth and transparency & trust. Both do llm inference.

Best model APIs and inference for AI agents · All 1495 models comparisons

Which one, for what

Gemini 4 Hydrogen B

Best for Agents doing everyday coding, tool calls and document work at volume on the Gemini API, including ones that need to start on a free key, or as the executor beside Carbon or Argon.

Ahead on

  • Agent ergonomics, 90 against 71
  • Payments & pricing, 40 against 30
  • Maintenance & community, 85 against 67

Watch for

temperature, top_p and top_k are ignored, and thinking_budget, MINIMAL, penalties and extra candidates return a 400

Writer Palmyra API B

Best for An enterprise team that wants Palmyra models with a long context, tool calls and published trust documents, usually beside Writer's agent platform.

Ahead on

  • Security & auth, 79 against 50
  • Transparency & trust, 78 against 72

Watch for

The status page at status.writer.com answered 403 for robots.txt, so its history was not read

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Security & auth Writer Palmyra API +29

Gemini 4 Hydrogen 50

Model reading for gemini-4-hydrogen on the Gemini API. Platform facts are the Gemini API listing's (gemini-api, re-read 1 November), carried over as RULES.md allows for a model on an already graded platform. Keys bound to a service account and restricted to the Gemini API, with no scopes and a token accepted in the URL (15 of 30, the platform's deduction). Hydrogen is on the free tier, where Google's terms say content is used to improve products and may be read by humans; paid-tier content isn't (10 of 20, the platform's reading; Carbon, paid tier only, got 15). Abuse retention has no number and new paid projects store requests by default since 26 October; Google's prompt-injection figure (2.3 times more resilient on Gray Swan's benchmark) is its own, and the model card says jailbreak resistance is still being improved (5 of 15). Request logs for billed projects (15). security.txt and a reward programme, no certification naming the API (5 of 20). 15 + 10 + 5 + 15 + 5 = 50.

Writer Palmyra API 79

Model reading. A bearer key made in Control Center with a name, an owner, an expiration and per-capability permissions, shown once, and legacy keys end on 1 January 2027 (22 of 30). The terms say materials are not used to train models and the trust FAQ says no training on inputs or outputs, and the data processing agreement was not read (16 of 20). The trust FAQ describes zero data retention with storage only as long as needed, and customers can set a deletion schedule and bring their own KMS key (12 of 15). Control Center has event logs and observability with request-level logs, and their coverage of plain API calls was not read (11 of 15). SOC 2 Type II, ISO 27001, 27701 and 42001, HIPAA and PCI DSS SAQ A per the trust centre, with security.txt answering 404 and no bug bounty found (18 of 20). Total 79.

Agent ergonomics Gemini 4 Hydrogen +19

Gemini 4 Hydrogen 90

Model reading for gemini-4-hydrogen on the Gemini API. Platform facts are the Gemini API listing's (gemini-api, re-read 1 November), carried over as RULES.md allows for a model on an already graded platform. Function calling, with forced calls by FunctionCallingConfig on the API (20). Structured output to a response_schema, listed as supported on the Cloud model page (13 of 15). Implicit caching on prefixes of 4,096 tokens or more with durable caching on by default and explicit caches not supported, per the Cloud model page; the announcement names no cached-input price (12 of 15). 1,048,576 tokens shared between input and output, with background long decode up to 1M (15). Batch at half price on the platform (10). Python and JavaScript SDKs, and an OpenAI-compatible Chat Completions surface (10). Error codes with backoff guidance (10 of 15). 20 + 13 + 12 + 15 + 10 + 10 + 10 = 90.

Writer Palmyra API 71

Model reading. Responses can be sized with max_tokens (8,192 on X6 and X5, 4,096 on X4), n, stop, logprobs and streaming, with a 1M context on X6 and X5 (18 of 25). A pagination guide covers lists of graphs and files, and chat has no filtering (14 of 20). Errors share one JSON shape with a description and a key (16 of 20). The SDKs retry 7 times by default and a retry endpoint exists for failed files, with no idempotency key (8 of 20). model and messages are required, with Python and Node SDKs (15 of 15). Tool calling, streaming, vision on X5 and structured outputs on X5 and X4 are documented. No prompt caching or batch for chat was found. Total 71.

Maintenance & community Gemini 4 Hydrogen +18

Gemini 4 Hydrogen 85

Model reading for gemini-4-hydrogen on the Gemini API. Platform facts are the Gemini API listing's (gemini-api, re-read 1 November), carried over as RULES.md allows for a model on an already graded platform. Released on 12 November 2026, recorded in Google Cloud's release notes; the Gemini API changelog, last updated 30 October, has no entry for it yet (30). Google Cloud states a minimum of 45 days' notice before Hydrogen is retired, short and stated for Cloud only; the Gemini API's deprecations give earliest dates with no stated minimum (6 of 12). Shutdowns in the last 90 days kept to their table (4 of 8). Dated changelog (15). SDK replies not sampled (5 of 10). Current SDKs; the developer guide names the minimum google-genai, @google/genai, Go and Java versions (15). Runtimes stated (10). 30 + 6 + 4 + 15 + 5 + 15 + 10 = 85.

Writer Palmyra API 67

The newest dated API change is Python and Node SDK 3.0.0 on 2 June 2026, 180 days before this check. Release candidates followed on 13 July and 3 September 2026, and the pricing page carries a 26 November 2026 update to Agent model rates, so the 90-day band scores (20 of 30). The deprecation policy gives at least three months' notice of a deprecation and six months' notice of end of support, with a dated table of five deprecated models and Palmyra X4 and X5 set for 14 December 2026 (18 of 20). A help centre and a changelog exist, and GitHub issue replies were not sampled (8 of 15). Official Python and Node SDKs exist, with the latest stable release 180 days old and later release candidates (13 of 15). Both SDK repositories have CI and publish workflows, and their runs were not read (8 of 10). Total 67.

Payments & pricing Gemini 4 Hydrogen +10

Gemini 4 Hydrogen 40

Model reading for gemini-4-hydrogen on the Gemini API. Platform facts are the Gemini API listing's (gemini-api, re-read 1 November), carried over as RULES.md allows for a model on an already graded platform. No machine payment protocol (0). Prices published in Google's announcement without a login, $1.50 input and $7.50 output per million tokens, flat across the window; the Gemini API pricing page, now at aistudio.google.com, is still to be read for Hydrogen's row (20). A free tier with no card: Google's announcement puts Hydrogen on all tiers of the Gemini API, and the free tier needs no billing account per the gemini-api listing; its limits for Hydrogen are on that pricing page (20). A Google account and AI Studio for a key (0). 0 + 20 + 20 + 0 = 40.

Writer Palmyra API 30

No x402, MPP or L402 in the pages read (0). Per-token prices for X6, X5 and X4 are on the public pricing page (30). No free API credit or trial was found, though the docs say to sign up for a free account (0). A person signs in and makes a key in Control Center, and no key API was found (0). Total 30.

Transparency & trust Writer Palmyra API +6

Gemini 4 Hydrogen 72

Model reading for gemini-4-hydrogen on the Gemini API. Platform facts are the Gemini API listing's (gemini-api, re-read 1 November), carried over as RULES.md allows for a model on an already graded platform. Closed service with clear terms, SDKs Apache-2.0 (15). Free-tier content is used to improve products, paid-tier content isn't, abuse retention has no number, and request storage is on by default for new paid projects; the statements agree with each other (20 of 30). Deprecations table, and a stated 45-day minimum on Cloud (15 of 20). Data may be cached anywhere Google has facilities; no subprocessor list checked (5 of 20). A DeepMind model card gives a March 2026 knowledge cutoff, automated safety results and Frontier Safety Framework outcomes, with the full safety report marked coming soon. Every benchmark figure is Google's own. 15 + 20 + 15 + 5 = 55.

Writer Palmyra API 78

Closed service under published terms, Apache-2.0 SDKs, and Palmyra weights not part of this listing (15 of 30). The terms, privacy policy, trust FAQ and docs agree on no training and zero data retention, and the data processing agreement is linked and was not read (24 of 30). A dated deprecation policy with stated minimum notice periods (20 of 20). A trust centre with a subprocessors tab and an EU endpoint, with the subprocessor list not read (16 of 20). Total 75.

Score by category

CategoryWeightGemini 4 HydrogenWriter Palmyra APIEdge
Reliability16%4543Gemini 4 Hydrogen +2
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8588Writer Palmyra API +3
Agent ergonomics13%9071Gemini 4 Hydrogen +19
Security & auth14%5079Writer Palmyra API +29
Payments & pricing10%4030Gemini 4 Hydrogen +10
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8567Gemini 4 Hydrogen +18
Transparency & trust7%7278Writer Palmyra API +6
Negative events≤1500
TotalB 64.9/100B 64.7/100

Facts side by side

FactGemini 4 HydrogenWriter Palmyra API
KindModel APIModel API
VendorGoogleWriter
Hosted endpointhttps://generativelanguage.googleapis.com/v1betahttps://api.writer.com/v1/chat
TransportsHTTP
AuthAPI keyAPI key
PricingPay per usePay per use
x402nono
LicenceClosed model, used through the Gemini API and Google's apps under Google's termsProprietary service under Writer's terms of use and enterprise agreements. The Python and Node SDKs are Apache-2.0
Read-only variant documentednono
llms.txtyesyes
Last release2026-11-122026-09-03
Terms last updated2026-04-28not read yet
Privacy policy last updated2026-10-01not read yet
Customer content may train modelsyesnot read yet
Terms restrict automated accessyesnot read yet
Terms restrict benchmarkingyesnot read yet
Terms or service can change without noticenot found in the textnot read yet
Arbitration or class-action waivernot found in the textnot read yet

Verdicts

Gemini 4 Hydrogen

Google's fast Gemini 4 model, on every tier of the Gemini API including the free one, at $1.50 and $7.50 per million tokens with a 1M-token budget, four thinking levels, function calling and structured output. Sampling parameters are ignored, explicit caching isn't supported, it's a short-term release with 45 days' notice on Cloud, and the benchmarks are Google's.

Writer Palmyra API

Writer publishes an OpenAPI file with 18 operations, keys with permissions and an expiry, public per-token prices and a dated deprecation policy, and the terms say it does not train on customer data. Palmyra X4 and X5 are deprecated on 14 December 2026, and Writer's status page is closed to our reader.

Before you call either

Gemini 4 Hydrogen

  1. Call generateContent at https://generativelanguage.googleapis.com/v1beta with model gemini-4-hydrogen and an x-goog-api-key
  2. Set thinking_level instead of thinking_budget; the default is HIGH, so set MEDIUM to keep 3.8 Flash's latency
  3. Don't send temperature, top_p, top_k, penalties or candidate_count above 1
  4. Pass every thought_signature back in its original part, on the first parallel functionCall only, or the call returns a 400
  5. Put static content of 4,096 tokens or more first so implicit caching applies, and keep confidential prompts off the free tier

Writer Palmyra API

  1. Call POST https://api.writer.com/v1/chat with Authorization: Bearer <key>. model and messages are required, and max output is 8,192 tokens for X6 and X5 and 4,096 for X4
  2. Use palmyra-x6 for new work. Move any palmyra-x4 or palmyra-x5 code before 14 December 2026
  3. Create new API keys and revoke legacy keys before 1 January 2027, and tick only the Models permission for a chat-only agent
  4. Stay under 400 requests and 25,000 tokens a minute. On 429, back off exponentially. The Python SDK retries 7 times by default
  5. Read the error body's errors[].description and key fields to decide whether to fix the request or retry

Questions

Which is better for AI agents, Gemini 4 Hydrogen or Writer Palmyra API?

Gemini 4 Hydrogen and Writer Palmyra API score within a point of each other on agent readiness, 64.9 (B) and 64.7 (B). Writer Palmyra API leads on security & auth and transparency & trust.

Do Gemini 4 Hydrogen and Writer Palmyra API need an API key?

Both need an API key.

Can an agent call Gemini 4 Hydrogen and Writer Palmyra API without installing anything?

Yes. Gemini 4 Hydrogen has a hosted endpoint at https://generativelanguage.googleapis.com/v1beta and Writer Palmyra API at https://api.writer.com/v1/chat.

Other comparisons with Gemini 4 Hydrogen or Writer Palmyra API

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.