Does Grok have zero data retention?

The Grok API supports zero data retention as a team-wide setting that an admin enables in the xAI Console, and it is not on by default. This page covers what ZDR removes, what it disables, and how to verify it on every response.

On this page

Does Grok have zero data retention? Yes, as a team-wide admin setting on the Grok API

If you are deciding whether staff or applications may send customer or patient data to the Grok API, know this first: SpaceXSI supports zero data retention (ZDR), and it is a team-level setting that a team admin turns on in Team Settings in the xAI Console. It is not the default. Out of the box, SpaceXSI stores API requests and responses encrypted at rest for 30 days for auditing purposes, and ZDR removes that storage. Enabling it also has functional trade-offs. SpaceXSI's security FAQ says that for most customers it does not recommend ZDR, because it disables the stateful Responses API, Files, Collections and the Batch API. Plan your architecture around those losses before you flip the switch, and note that the Console blocks enabling ZDR while Files or Collections remain.

Two other commitments belong in the same review. SpaceXSI says it never trains on Grok API inputs or outputs without the customer's explicit permission, so confirm in writing that no such permission has been granted for your account. SpaceXSI also states that it is SOC 2 Type 2 compliant, and customers with a signed NDA can view current certifications in its Trust Center. Ask for the report itself and its scope rather than relying on the statement. On location, the default endpoint does not guarantee a processing region. If data residency in the United States matters to you, the US regional endpoint at xAI regional endpoints documentation keeps request handling, inference and retained data in the US. ZDR applies on both the global and the US regional endpoint, so the regional choice and the retention setting are separate decisions.

Before you approve use, confirm three things. First, that ZDR is enabled at the team level for every team that can reach the API, since the setting is not per application. Second, that the team has no Files or Collections that would block the change or that your applications depend on. Third, that you verify the setting on live traffic: every Grok API response includes an x-zero-data-retention header set to true or false, so log that header in your integration tests and in production monitoring, and alert when it reads false for a request that should be covered. This check confirms the configuration you approved is the one in effect. It does not replace the contract, certification and training terms you have reviewed.

Data retention and training controls by option on the Grok API

This table compares each retention, training and regional control on the Grok API by how it is turned on, whether a separate contract is needed, and what it removes or leaves open. Use it to see which settings a team admin controls in the Console and which depend on SpaceXSI or on the plan you hold. The main takeaway is that zero data retention is a team-wide admin setting with functional trade-offs, and the plan coverage must be confirmed in the Console or with SpaceXSI.

ControlBuilt in or admin-enabledNeeds a separate contractNot available or to confirm
Default 30-day storageBuilt in. Requests and responses are stored encrypted at rest for auditing unless ZDR is onNot stated in the sourceConfirm the plan and contract terms that apply to your team
Zero data retentionAdmin-enabled in Team Settings in the xAI Console, team-wideNot stated in the sourceConsole blocks enabling it while Files or Collections remain
x-zero-data-retention headerBuilt in on every API response, set to true or falseNot applicableCheck each response to confirm the stored setting applied
No training without explicit permissionBuilt in per the security FAQ. Training needs the customer's explicit permissionConfirm whether permission is given by contract or by a settingAsk SpaceXSI to confirm the written training terms for your plan
US regional endpointChosen by the client in API calls. Keeps handling, inference and retained data in the USNot stated in the sourceThe default endpoint does not guarantee a processing region
SOC 2 Type 2 reportStated as held in the security FAQSigned NDA required to view current certifications in the Trust CenterRequest the current report scope and period from SpaceXSI
Stateful Responses API, Files, Collections, Batch APIDisabled when zero data retention is enabledNot applicableSpaceXSI does not recommend ZDR for most customers because of these losses

What the 30-day default stores and what ZDR removes

By default, SpaceXSI stores Grok API requests and responses encrypted at rest for 30 days for auditing purposes. Zero data retention (ZDR) is the setting that removes that storage. For a reviewer, the decision starts with a simple question: does your organization need the 30-day audit copy, or does it need the vendor to hold nothing after the response is returned? Under the default, the vendor keeps the copy and your team carries the risk of that copy existing, including its access controls and its exposure in an incident. With ZDR enabled on the team, the 30-day encrypted store is removed for requests on that team. Record the setting state in your approval file so the decision can be checked later.

Keep two questions separate: how long records are kept, and whether data is used to train models. Retention is about what is stored and for how long. Training is about whether inputs or outputs are used to improve Grok. SpaceXSI's API security FAQ states that it never trains on API inputs or outputs without the customer's explicit permission. That statement covers training only. It does not tell you how long records persist, and it does not replace a written data processing commitment in your contract. Ask SpaceXSI to confirm in writing that the no-training position applies to your account type and that it is reflected in your agreement, not only in the FAQ.

The sources do not describe every other place where request data may be held. Ask SpaceXSI to list, for your account, what else may retain data outside the 30-day audit store and ZDR. Typical examples to raise are abuse or safety logs, billing records, support tickets and attachments sent to support, and any telemetry from the Console. For each, ask the retention period, who can access it, and whether ZDR changes it. Patient or customer content that appears in a support ticket is often outside the API setting, so your data handling procedure should tell staff not to send protected data to support channels.

What enabling ZDR disables, and why SpaceXSI does not recommend it for most customers

Zero data retention removes the 30-day encrypted storage of requests and responses, and it also switches off several features that application teams may already depend on. SpaceXSI's position is that most customers should not enable it, so the choice is a documented trade-off between privacy and functionality rather than a default to accept.

Stateful Responses API

With ZDR enabled, the stateful Responses API is disabled, so applications cannot rely on the platform to keep conversation state between calls. Each request must carry the context it needs, which changes how prompts are built and how long they grow. Application teams should list every endpoint and SDK call their code uses and confirm, in a test environment, that each one still works with ZDR on before the setting is applied to production.

Security FAQ

Files storage

Files uploaded through the API are not available once ZDR is enabled, so any workflow that depends on uploaded documents stored on the vendor side will stop working. Teams that ingest patient letters, contracts or reports should decide whether those files can be sent inline per request or must move to an in-house document store. Confirm the file handling path with the vendor before the setting is changed.

Collections

Collections, the stored sets of documents used for retrieval, are also disabled under ZDR. A search or knowledge workflow built on Collections will lose its index on the vendor side. Organizations that need retrieval over internal records should plan to hold the index and the documents in their own infrastructure and send only the retrieved passages to the model, with the data handling reviewed as part of that design.

Batch API

The Batch API is disabled with ZDR, which removes asynchronous bulk processing for large jobs such as summarizing a backlog of records. Teams that run overnight batches need to measure the cost and latency of moving those jobs to synchronous requests before deciding. Ask SpaceXSI to confirm in writing which billing and throughput options remain available under ZDR on your plan.

Console rule blocking enablement

The xAI Console blocks a team from enabling ZDR while Files or Collections still exist. Administrators must delete those objects first, which means confirming that no production workflow still references them and that the deletion is recorded internally. Treat this as a change-management step: document who approved the deletion, when the setting changed in Team Settings, and how the change is verified on responses.

Documenting the trade-off

SpaceXSI says it does not recommend ZDR for most customers, which means the privacy benefit has to be weighed against feature loss in writing. A risk acceptance record should name the data classes allowed, the features given up, the team owner, and the review date. Where a team keeps the default 30-day retention, the record should state that encrypted storage for auditing applies and who can request it.

Default retention
30 days

Order of work to enable and prove ZDR in production

This sequence moves a Grok API deployment from default 30-day retention to team-wide zero data retention, with evidence that each sampled response confirms it. The order matters because the Console blocks enabling ZDR while Files or Collections remain, so feature cleanup comes before the admin change.

  1. Inventory teams, keys and API features in use

    Before changing any setting, list every team, API key and application that sends requests to the Grok API, and record which features each one uses: the Responses API, Files, Collections or the Batch API. Name an owner for each item, and confirm which of them carry patient or customer data. The output is a written register that shows which workloads depend on stateful features and would stop working once zero data retention is enabled. SpaceXSI's security FAQ says zero data retention disables the stateful Responses API, Files, Collections and the Batch API, so this register is the basis for every later decision.

  2. Migrate or remove Files and Collections first

    For each workload in the register that depends on Files or Collections, move the content to a store your organization controls, or delete it when it is no longer needed, and update the application to stop referencing those objects. The Console blocks enabling zero data retention while Files or Collections remain, so this work is a prerequisite rather than an optional cleanup. Confirm completion by checking the Files and Collections views for the team and by a second reviewer signing off on the register. Record any data deleted or moved, because that record is part of your retention evidence.

  3. Reassess Responses API and Batch API workloads

    Decide, for each workload that still uses the stateful Responses API or the Batch API, whether it can run in stateless mode, move to a different design, or stay on default retention under a documented exception. SpaceXSI says it does not recommend zero data retention for most customers because of these disabled features, so this decision should be made by the data owner and the security lead together. Record the decision for each workload with its owner and the reason. The output is a signed list of workloads that will run under zero data retention and any that will not.

  4. Enable the team-level ZDR setting

    A team admin opens Team Settings in the xAI Console and enables zero data retention for the team. Because the setting applies to the whole team, confirm first that every key and application in the register belongs to that team and is covered by step 4. The admin should keep a dated screenshot or change record of the setting and the admin who made the change. Completion is confirmed when the Console shows the setting as enabled and the admin's change record is filed with the register. If the Console refuses the change, return to step 2, because remaining Files or Collections are the most likely cause.

  5. Route regulated traffic to the US endpoint

    If your residency requirements call for US processing, point the regulated applications at the US regional endpoint, instead of the default endpoint. SpaceXSI's regional documentation says the default endpoint does not guarantee a processing region, while the US endpoint keeps request handling, inference and retained data in the US. Zero data retention applies to requests on both endpoints, so this change does not replace the team setting. Confirm the change by reviewing the base URL in each application's configuration and by checking the request logs for the regulated keys. Ask SpaceXSI to confirm current regional terms in writing before relying on them for a regulated workload.

  6. Sample responses for the ZDR header

    Send test requests from each regulated application and capture the response headers. Every Grok API response includes an x-zero-data-retention header set to true or false, so the check is whether it reads true for each sampled response from the regulated workloads. Include requests from both the default and the US endpoints if both are in use. Store each sample with its timestamp, endpoint, key identifier and header value in a log the compliance team can read. Any response that returns false means the workload is not yet covered, and it should be fixed and resampled before go-live.

  7. Retain evidence and re-verify after changes

    Keep the register, admin change record, endpoint configuration and header samples together in the evidence store your compliance team reviews. Repeat the header sampling whenever a team member, API key, application or endpoint changes, and whenever someone adds Files, Collections or a Batch job, because any of these can alter the state of the workload. Set a named owner for the re-check, and treat any false header as an incident to investigate. The result is a repeatable record that shows zero data retention was enabled and that responses continue to report it, which is the proof an assessor or customer security reviewer will ask for.

How the answer changes by situation

A team that only sends single requests and reads back the responses has the simplest path. Zero data retention removes the 30-day encrypted storage of requests and responses that applies by default, and it does not block the core request flow for a team that does not depend on the disabled features. The team admin still makes the change at team level, so every member's requests fall under it at once.

  • Confirm the feature list: Check that no application calls the stateful Responses API, Files, Collections or the Batch API before enabling the setting.
  • Check the admin scope: Confirm which admin holds the Team Settings permission in the xAI Console and who can reverse the change.
  • Test the header: Verify that responses return an x-zero-data-retention header set to true in a sample of real requests.
  • Review shadow usage: Ask whether staff use other keys or teams that would still store data by default.
  • Record the setting: Keep a dated screenshot or export of the team configuration as audit evidence.

Before approval, ask the vendor to confirm in writing that the setting covers every endpoint the team uses.

How to verify ZDR on each response and where data is processed

Treat the team setting as a control you must prove, not assume. Every Grok API response includes an x-zero-data-retention header set to either true or false, which gives you per-response evidence of the retention state that applied to that request. Capture that header value in the logs your security team already keeps, alongside the request timestamp, the model name and the endpoint used. A setting changed in the Console tells you what should happen; a stored header value from each call tells you what did happen, and that is the record an auditor or privacy reviewer will ask for. Confirm with SpaceXSI how the header is documented for your plan before you rely on it as an audit artifact.

Zero data retention is a team-level setting, so it applies to requests on both the global endpoint and the US regional endpoint, ` Location is a separate question. The default endpoint does not guarantee a processing region, while the US regional endpoint keeps request handling, inference and retained data in the US. If your data residency requirement is US only, route traffic to the regional endpoint in your client configuration and check that the base URL in your code and gateway logs matches it. Do not assume that enabling ZDR also fixes location; the two controls answer different questions.

Ask SpaceXSI to confirm in writing which endpoints, plans and storage components fall under your team's ZDR setting, and whether any region other than the US is available. Then run a short test: send a known request through each endpoint your staff use, record the header value and compare it against the expected team configuration. Repeat the check after any admin change and after any new integration goes live. Store the results with your change records so the evidence shows the control working over time, not only on the day you enabled it.

Questions buyers ask before approving Grok API data use

Does zero data retention on the Grok API cost extra, and on which plan?

The sources supplied for this page do not state pricing or plan tiers for zero data retention, so confirm both with SpaceXSI before you approve a budget or a rollout. Ask in writing which Console plan or contract includes the setting, whether it carries a fee, and whether any fee recurs or is one-time. The cost driver is usually not the toggle itself but what your teams lose when it is on: if your applications depend on stateful features that zero data retention disables, the engineering work to replace them is the real cost. Ask SpaceXSI to confirm the commercial terms in its quote, and ask your own engineering leads to estimate the rework from the feature list in the security FAQ.

Does SpaceXSI train its models on our Grok API data?

SpaceXSI says it never trains on Grok API inputs or outputs without the customer's explicit permission. That statement comes from its API security FAQ, and it describes the default posture for API traffic rather than a contract term you can rely on by itself. Confirm the position in your agreement with SpaceXSI, and record who at your organization has authority to grant or refuse any training permission. Keep in mind that training terms and retention terms are separate questions: a no-training commitment does not change how long requests are stored, and zero data retention does not by itself answer the training question.

What breaks when we enable zero data retention on Grok?

SpaceXSI's security FAQ says that for most customers it does not recommend enabling zero data retention, because the setting disables the stateful Responses API, Files, Collections and the Batch API. Any workflow that stores files, reuses conversation state on the server, or submits asynchronous batch jobs will stop working or need redesign. Before you enable the setting, inventory every integration, script and internal tool that calls the Grok API and mark which of these features it uses. Test the affected paths in a non-production team first, because the Console controls are team-wide and the change applies to all requests from that team.

Can our own team enable zero data retention without outside help?

Yes, the enabling step is a Console task: a team admin turns on zero data retention in Team Settings in the xAI Console, and the Console blocks the change while Files or Collections still exist. The effort is driven by the work around that step, not the click. Your team must delete or migrate existing Files and Collections, confirm which applications rely on the disabled features, update those applications, and verify the header on live responses. Smaller teams with few integrations can often handle this internally. Organizations with many services, strict change control, or regulated workloads may prefer a fixed-scope engagement, which DeployOpen can scope in writing before work starts, covering the inventory, the migration plan and the evidence. Ask any outside party for a written scope and deliverables before you agree to it.

How do we verify zero data retention on each Grok API response?

Every Grok API response includes an x-zero-data-retention header set to true or false, so you can check the setting per response rather than relying only on the Console. Build a check into your integration tests and your logging pipeline that records the header value for sampled requests, and alert when a response returns false for a team that should be zero data retention only. Test both the global endpoint and the US regional endpoint, because zero data retention is a team-level setting that applies to requests on both. Keep the test output with your change records so you can show when the setting was verified and by whom.

How do we show an auditor that zero data retention is on?

Auditors usually want three things: the configuration in place, evidence that it is enforced, and a record that it stayed in place over time. For the configuration, capture a dated screenshot or export of the Team Settings page showing the zero data retention state, and keep the change ticket that approved it. For enforcement, keep logged samples of response headers showing true, along with the test scripts that produced them. For the period under review, keep periodic re-checks and any alerts. On the vendor side, SpaceXSI's security FAQ says it is SOC 2 Type 2 compliant and that customers with a signed NDA can see current certifications in its Trust Center, so request the report through your contract process rather than relying on a summary. Confirm with your auditor which of this evidence they will accept.

Does turning on zero data retention alone satisfy a HIPAA business associate requirement?

No. Zero data retention is one control, and it does not by itself decide whether a business associate agreement is in place or what your covered entity obligations require. Whether SpaceXSI signs a BAA for the Grok API, how to request one, and which retention and regional controls to configure before sending protected health information are covered on the sibling page Is Grok HIPAA compliant? BAA for the Grok API. Read that page before any protected health information reaches the API, and treat zero data retention as a configuration you verify, not a compliance outcome.

Gaps a reviewer should close before approving Grok for customer data

Zero data retention answers one question, whether stored request and response copies exist. A reviewer still has to settle where processing happens, which plan carries the setting, what breaks when it is on, and what sits outside the API. Each card below names the usual way to close the gap: a configuration step, a written question to SpaceXSI, or an internal control.

No processing region guarantee on default endpoint

The default Grok API endpoint does not guarantee a processing region. If customer data must stay in the United States, the requests have to go to the US regional endpoint, which keeps request handling, inference and retained data in the US. Configure the client to call only that endpoint, and check that no fallback or hard-coded default sends traffic elsewhere. Ask SpaceXSI in writing where processing occurs for any other region you intend to use.

Regional endpoints docs

Zero data retention disables stateful features

SpaceXSI does not recommend enabling zero data retention for most customers because it disables the stateful Responses API, Files, Collections and the Batch API. Teams that depend on any of these will break or need a redesign before the setting is turned on. Inventory which applications use those features, test them with the setting enabled in a non-production team, and record the accepted trade-off in the approval.

Security FAQ

Plan eligibility for zero data retention

The supplied sources do not state which Grok API plans or account tiers include zero data retention. Do not assume that a given plan has it. Ask SpaceXSI in writing which plans support the setting, whether it is available to your account type, and whether it is applied to all team members or only to new keys. Keep the written answer with the approval record, since the Console setting alone does not show plan coverage.

Retention outside the API

The API retention behavior covers stored requests and responses. The supplied sources do not describe how support tickets, abuse reports or safety review records are kept, or for how long. Ask SpaceXSI which records of prompts or outputs it keeps outside the API, the retention period for each, and who can access them. Then decide whether your contract, data processing terms and staff guidance must address those copies, and whether staff should avoid sending customer identifiers in support requests.

Confirm SOC 2 report scope

SpaceXSI states that it is SOC 2 Type 2 compliant and that customers with a signed NDA can view current certifications in its Trust Center. A SOC 2 statement does not show which systems the report covers, so check whether the Grok API and its data retention practices fall within the report's scope. Request the report under NDA, read the system description and the exceptions noted, and confirm the period it covers before relying on it in your vendor file.

What a security reviewer should ask to see

A reviewer should not accept a verbal statement that zero data retention is on. The evidence starts with the team-level setting: ask the team admin for a screenshot or export of the Team Settings state in the xAI Console, dated and tied to the team name and ID that makes the API calls. Because the setting is team-wide, one screenshot covers every key in that team, but a second team or a personal account used for API work is a separate gap that needs its own check. Ask who holds the admin role, since that person can change the setting and the evidence should show the change history if the console provides it.

The second item is runtime proof. Ask for sampled responses from production or a representative test workload, with the x-zero-data-retention header recorded as true for each sampled call. Sample both the global endpoint and, where residency applies, the US endpoint at ` because the setting applies to both but the endpoint choice determines where processing happens. The reviewer should also confirm that the calling application pins the endpoint in configuration, since the default endpoint does not guarantee a processing region. Keep the header samples with timestamps so they can be matched against the console evidence.

Third, obtain the training position in writing. SpaceXSI states that it never trains on API inputs or outputs without explicit customer permission, but that is a public security FAQ statement, so ask for it in the contract or order terms that govern your account. Fourth, request access to the SOC 2 Type 2 report through the Trust Center, which requires a signed NDA, and confirm the report period and scope cover the Grok API. DeployOpen prepares this evidence, including configuration exports, header samples and a control narrative, for internal and external assessments. It does not issue audit reports, attestations or certifications. An independent auditor makes those judgments, so the reviewer should decide in advance who will sign off on the retention claim.

How DeployOpen helps teams govern Grok and similar AI tools

DeployOpen approaches zero data retention on Grok as a governance question with a written scope, not a single switch. We help teams confirm which Grok API settings, endpoints and response checks apply to their use, and where a self-hosted open-source platform fits when hosted retention does not meet their requirements.

How we scope

  • Written scope lists which Grok API teams, endpoints and data types the review covers.
  • Scope names who confirms the team-wide zero data retention setting in the xAI Console.
  • Scope records which stateful features teams must keep, such as Files, Collections or Batch API.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • We configure a test team so zero data retention status can be checked against real request logs.
  • We test whether application code reads the x-zero-data-retention response header and flags false values.
  • We map each data category to an approved endpoint, either the global or the US regional endpoint.
  • Where hosted retention is unacceptable, we plan a self-hosted open-source alternative inside your infrastructure.

How we hand over

  • You receive a written record of configuration, endpoint choices and header-check evidence.
  • Documentation explains which features are disabled under zero data retention and how teams should work around them.
  • Findings from testing come with fixes and a retest, so your security and compliance teams can review the outcome.
  • Evidence is prepared for your compliance reviewers, who make their own assessment and any formal attestation.

How we support

  • Ongoing support is available as a retainer for changes to Grok settings, plans and endpoints.
  • Continuous testing can recheck the zero data retention header after application releases.
  • Periodic reviews confirm that Team Settings still match the data handling terms your organization approved.
  • Upgrades and documentation updates follow vendor changes to the Grok API security terms.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.