Skip to main content
Search
Tag

api

18 results

OpenAI Responses API Guide: Web Search, Code Interpreter, and Built-in Tools
Article

OpenAI Responses API Guide: Web Search, Code Interpreter, and Built-in Tools

The Responses API replaced Assistants API with a simpler design and built-in tools — here's how to use web search, code interpreter, and file search in your apps.

8 min read
Read
How to Use Claude Code in India Without a Credit Card (2026 Guide)
Article

How to Use Claude Code in India Without a Credit Card (2026 Guide)

Thousands of Indian developers want Claude Code but can't pay. Here's how to use Claude Code in India with UPI, GPay, or net banking — no international card needed.

8 min read
Read
Claude 4.6 Effort Parameter: How to Cut Your API Bill by 60%
Article

Claude 4.6 Effort Parameter: How to Cut Your API Bill by 60%

Most developers leave effort at default (high) and overpay for routine tasks. Anthropic's own docs recommend medium for most Sonnet 4.6 use cases. Here's the math.

7 min read
Read
Claude 4.6 Context Compaction: How to Run Infinite Agentic Sessions
Article

Claude 4.6 Context Compaction: How to Run Infinite Agentic Sessions

The #1 problem with long-running agents: they hit the context limit and die. Claude 4.6 context compaction fixes this with one config field. Here's how it works.

6 min read
Read
Claude Opus 4.6 Prompting Guide: Adaptive Thinking, Effort Levels, and 1M Context
Article

Claude Opus 4.6 Prompting Guide: Adaptive Thinking, Effort Levels, and 1M Context

Claude 4.6 changed how you prompt: adaptive thinking replaces budget_tokens, effort parameter cuts costs 60%, 1M context is now GA. Here's what changed and how to use it.

7 min read
Read
Structured Outputs with Claude 4.6: JSON Schemas, Pydantic, and Reliable Extraction
Article

Structured Outputs with Claude 4.6: JSON Schemas, Pydantic, and Reliable Extraction

Structured outputs are GA in Claude 4.6. Pass a JSON schema, get schema-valid JSON back — no retry logic needed. Three copy-paste patterns for Python developers.

7 min read
Read
Migrating from Claude 3.5/4.5 to Claude 4.6: What Breaks, What Changes, What's Better
Article

Migrating from Claude 3.5/4.5 to Claude 4.6: What Breaks, What Changes, What's Better

Claude 3.5 Sonnet and Haiku 3.5 are retired. Prefill now returns 400. budget_tokens is deprecated. Here's your complete migration checklist from 3.5 or 4.5 to Claude 4.6.

8 min read
Read
Prompt Caching in Claude 4.6: How to Cut API Costs by 90% on Repeated System Prompts
Article

Prompt Caching in Claude 4.6: How to Cut API Costs by 90% on Repeated System Prompts

Most Claude API calls re-process the same system prompt on every request. Prompt caching fixes this: pay 10% of normal price for cached tokens. Setup is one line of code.

7 min read
Read
AICredits.in Review: 300+ AI Models in INR, No International Card Needed
Article

AICredits.in Review: 300+ AI Models in INR, No International Card Needed

A hands-on review of AICredits.in — the API gateway that lets Indian developers access GPT-4o, Claude, Gemini, and 300+ models with UPI payment.

7 min read
Read
AICredits.in vs OpenRouter for Indian Developers: Which Should You Use?
Article

AICredits.in vs OpenRouter for Indian Developers: Which Should You Use?

Both give you one API key for multiple LLMs. But OpenRouter bills in USD. Here's a direct comparison for Indian developers and teams.

6 min read
Read
How to Use the OpenAI API in India with UPI Payment (GPT-4o, o3, DALL·E)
Article

How to Use the OpenAI API in India with UPI Payment (GPT-4o, o3, DALL·E)

OpenAI's API requires an international card. This guide shows Indian developers how to access GPT-4o, o3-mini, and DALL·E 3 via UPI using AICredits.in.

7 min read
Read
How to Use the Claude API in India: UPI Payment, INR Billing, No Dollar Account
Article

How to Use the Claude API in India: UPI Payment, INR Billing, No Dollar Account

Anthropic doesn't support Indian payment methods. Here's how to access Claude Sonnet, Haiku, and Opus in India with a UPI payment via AICredits.in.

7 min read
Read
Prompt Caching: How to Cut AI API Costs by 80% (Anthropic + OpenAI)
Article

Prompt Caching: How to Cut AI API Costs by 80% (Anthropic + OpenAI)

A practical guide to prompt caching on Anthropic and OpenAI APIs — how it works, what it saves, and the patterns that maximize cache hit rates in production.

10 min read
Read
Function Calling Explained: How AI Models Use Tools (With Real Examples)
Article

Function Calling Explained: How AI Models Use Tools (With Real Examples)

Function calling lets LLMs request specific tool actions rather than just generating text. Here's how it works, when to use it, and practical examples in Python.

6 min read
Read
Structured Outputs and JSON Mode: Getting Reliable Data From AI
Article

Structured Outputs and JSON Mode: Getting Reliable Data From AI

Asking for JSON in your prompt isn't reliable. Structured outputs with schema enforcement is. Here's how JSON mode and structured outputs work across OpenAI, Anthropic, and Google's APIs.

6 min read
Read
Model Guide

How to Prompt Mistral: Instruct Format, Efficiency, and API Tips

Mistral's model family balances strong performance with exceptional efficiency. Learn the instruct format, how to use the Mistral API, and when each model in the family fits best.

5 min read
Read
Agents

Function Calling: Giving LLMs Tools

Function calling is the technical mechanism that lets an LLM invoke external tools. Learn how to define tools, how models decide when to call them, and how to structure results so agents act reliably.

6 min read
Read
Intermediate

Constrained Generation: Force Structured Output

Learn how to make AI models reliably output JSON, XML, CSV, and other structured formats — essential for integrating AI into real applications and workflows.

4 min read
Read