REST API · 99.9% Uptime SLA

The Credit Card Generator
API for Developers

Generate Luhn-valid test credit card numbers programmatically. Drop it into your CI/CD pipeline, QA suite, or payment form testing framework in minutes.

cURL
curl -X GET "https://api.creditcardsnumbersgenerator.com/v1/generate" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -G \
  --data-urlencode "network=visa" \
  --data-urlencode "count=5" \
  --data-urlencode "include_cvv=true" \
  --data-urlencode "include_expiry=true"

// Response
{
  "cards": [
    { "number": "4539 1488 0343 6467", "expiry": "09/28", "cvv": "427", "network": "visa" },
    { "number": "4916 3384 0409 3680", "expiry": "03/27", "cvv": "912", "network": "visa" }
  ],
  "count": 5,
  "usage": { "requests_used": 1, "requests_remaining": 49999 }
}
Monthly
Annual Save 17% — 2 months free
Free
$ 0
/month, forever
 

1,000 requests / mo
Rate limit: 10 req/min
  • All 4 card networks
  • CVV & expiry generation
  • Formatted or raw output
  • JSON response
  • API key via dashboard
  • Bulk endpoint
  • BIN options
  • Address data add-on
  • Priority support
Get Free Key
Starter
$ 9
/month
 

50,000 requests / mo
Rate limit: 60 req/min
  • All 4 card networks
  • CVV & expiry generation
  • Formatted or raw output
  • JSON response
  • API key via dashboard
  • Bulk endpoint (up to 100/call)
  • BIN prefix options
  • Address data add-on
  • Priority support
Start Free Trial
Business
$ 79
/month
 

2,000,000 requests / mo
Rate limit: 1,000 req/min
  • All 4 card networks
  • CVV & expiry generation
  • Formatted or raw output
  • JSON response
  • API key via dashboard
  • Bulk endpoint (up to 100/call)
  • BIN prefix options
  • Address data add-on eligible
  • Priority support + 99.9% SLA
Start Free Trial
Enterprise
Custom
Tailored to your volume & needs
  • Unlimited requests
  • Custom rate limits
  • Dedicated subdomain
  • Custom card network configs
  • All add-on data packs included
  • Dedicated Slack support channel
  • Custom SLA & invoicing
Contact Sales →
Enrich Your Test Data

Add-On Data Packs

Stack additional data onto every generated card. Mix and match packs to build the exact test payload your application needs. Available on Starter plans and above.

🏠
Address Data Pack
Per Request

Returns a full billing address — street, city, state, ZIP, and country — matching the card's issuing region. Essential for testing address verification systems (AVS) and billing form validation.

Starter+$4/mo flat
Pro+$9/mo flat
Business+$19/mo flat
EnterpriseIncluded
  • Street address, city, state/province
  • Postal / ZIP code
  • Country code (ISO 3166-1)
  • Region-matched to card BIN
🔍
BIN Intelligence Pack
Per Request

Enriches each card with realistic Bank Identification Number (BIN) metadata — issuing bank name, card category, country of issuance, and card sub-type. Ideal for testing BIN-aware routing logic.

Starter+$6/mo flat
Pro+$14/mo flat
Business+$29/mo flat
EnterpriseIncluded
  • Issuing bank name
  • Card type (debit / credit / prepaid)
  • Card level (Classic / Gold / Platinum)
  • Country & currency of issuance
👤
Identity Data Pack
Per Request

Generates a fictitious cardholder identity to pair with each card — full name, email address, and phone number. Perfect for populating complete checkout form test cases in a single API call.

Starter+$5/mo flat
Pro+$12/mo flat
Business+$24/mo flat
EnterpriseIncluded
  • First & last name (locale-aware)
  • Fictitious email address
  • Phone number (E.164 format)
  • Optional date of birth
🔐
3DS Scenario Pack
Per Request

Returns cards pre-flagged with specific 3D Secure 2.0 test scenarios — frictionless pass, challenge required, and decline. Lets you test your 3DS flow end-to-end without a live gateway sandbox.

Starter+$7/mo flat
Pro+$16/mo flat
Business+$34/mo flat
EnterpriseIncluded
  • 3DS outcome flag (pass / challenge / decline)
  • ECI indicator value
  • Authentication response code
  • Scenario description
📦
Bulk Export Pack
Per Month

Unlocks large single-call batch generation of up to 1,000 cards per request, plus the ability to export results as CSV or JSONL. Ideal for seeding test databases and staging environments at scale.

Starter+$8/mo flat
Pro+$18/mo flat
Business+$35/mo flat
EnterpriseIncluded
  • Up to 1,000 cards per API call
  • CSV and JSONL export formats
  • Async job endpoint for large batches
  • Webhook notification on completion
📊
Analytics & Logs Pack
Per Month

Adds a full request log dashboard and usage analytics to your API account — per-endpoint breakdowns, hourly request graphs, error rates, and exportable CSV logs. Useful for audit trails in larger teams.

Starter+$5/mo flat
Pro+$10/mo flat
Business+$20/mo flat
EnterpriseIncluded
  • Full request / response log (30-day retention)
  • Per-key usage breakdowns
  • Error rate & latency graphs
  • Exportable CSV logs
REST API

Available Endpoints

Clean, predictable REST endpoints. All responses return JSON. Authentication via Bearer token in the Authorization header.

GET
/v1/generate

Generate one or more Luhn-valid card numbers. Accepts network, count, include_cvv, include_expiry, and formatted query params.

GET
/v1/bulk

Generate up to 100 cards per call (Starter+) or up to 1,000 cards (Bulk Export Pack). Supports all add-on pack parameters. Returns array of card objects.

GET
/v1/validate

Validate any card number against the Luhn algorithm. Returns valid, network, and length. Useful for testing your own validation logic.

GET
/v1/networks

List all supported card networks, their BIN prefix ranges, and card length specifications. Useful for building dynamic network selectors in your UI.

GET
/v1/usage

Returns your current API key's usage stats — requests used, remaining, rate limit, and billing period reset date. Supports integration into internal dashboards.

GET
/v1/health

Public health check endpoint. Returns API status, latency, and current version. No API key required. Use in uptime monitoring and status pages.

Compare Plans

Full Feature Breakdown

Feature Free Starter Pro ★ Business Enterprise
Monthly requests1,00050,0002,000,000Unlimited
Rate limit10/min60/min1,000/minCustom
Card networksAll 4All 4All 4All 4 + Custom
CVV & expiry
Bulk endpoint100/call100/callCustom
BIN prefix selection
Luhn validate endpoint
Add-on packs eligibleAll included
Priority supportDedicated
Uptime SLA99.9%Custom
Annual billing discountN/A2 months free2 months freeCustom
Custom subdomain
Questions

API FAQ

Is there a free trial on paid plans? +

Yes. All paid plans (Starter, Pro, Business) include a 7-day free trial. No credit card is required to start. If you don't upgrade before the trial ends, your account automatically reverts to the Free tier. You keep your API key and any configuration.

How does annual billing work? +

Annual billing charges you for 10 months upfront at the monthly rate — you get 2 months completely free, saving approximately 17%. For example, the Pro plan is normally $29/month ($348/year). On annual billing, you pay $290/year — a saving of $58. You can switch from monthly to annual at any time from your billing dashboard.

What happens if I exceed my monthly request limit? +

Once you hit your monthly limit, the API will return a 429 response with a clear error message indicating your quota has been reached and your reset date. Your service does not continue on overages (no surprise bills). You'll receive an email warning at 80% usage so you can upgrade proactively if needed.

Can I stack multiple add-on packs? +

Yes. Add-on packs are independent and fully combinable. For example, on a Pro plan you could add the Address Pack, Identity Pack, and BIN Intelligence Pack simultaneously. Each pack's price is added to your monthly base plan cost. When a response includes multiple packs, the data is returned as nested objects within each card's JSON response.

Are the generated numbers compliant with PCI DSS? +

The numbers are fictitious — they pass Luhn validation but do not correspond to real accounts. Because no real cardholder data is involved at any point, using this API in your test/staging environment does not bring that environment into PCI DSS scope. Always ensure generated numbers are never used in production payment flows.

What authentication method does the API use? +

All requests are authenticated with a Bearer token passed in the Authorization HTTP header. API keys are generated from your account dashboard and can be rotated at any time. Keys are scoped to your plan and carry your rate limit and quota. Enterprise plans support multiple keys with custom scopes.

Can I cancel or downgrade at any time? +

Yes. Monthly plans can be cancelled or downgraded at any time with no penalty — your access continues until the end of the current billing period. Annual plans can be cancelled with a prorated refund for unused months. Downgrades take effect at the start of your next billing cycle.

Start Building Today

Get your free API key in 30 seconds. No credit card required. 1,000 requests/month, forever free.