SQLCoder 7B 2 on Cloudflare Workers AI

SQLCoder · Defog.ai

ServerlessOpen Weights

Last refreshed 2026-05-19. Next refresh: weekly.

Why use SQLCoder 7B 2 on Cloudflare Workers AI?

Cloudflare Workers AI offers SQLCoder 7B 2 with competitive pricing. Cloudflare is a leading connectivity cloud company that provides a comprehensive suite of cloud-native products and developer tools to enhance web performance, security, and reliability.

Input / 1M
-
Output / 1M
-
Cache
Not sourced
Batch
Not sourced

Setup recipe

Docs fallback
Install
Use the provider REST API or SDK
Auth
Create a provider API key
Call
model: @cf/defog/sqlcoder-7b-2
Model ID
@cf/defog/sqlcoder-7b-2

Request example

Curated snippets for this provider are not sourced yet. Use Cloudflare Workers AI documentation with model ID @cf/defog/sqlcoder-7b-2.

Gotchas

  • Use provider model ID "@cf/defog/sqlcoder-7b-2", not the LLMReference slug "sqlcoder-7b-2".

Capabilities

No model capability flags are currently sourced.

About SQLCoder 7B 2

SQLCoder-7B-2 is a large language model developed by Defog, Inc., designed to translate natural language questions into SQL queries, effectively bridging the gap for non-technical users to interact with databases. With its 7 billion parameters, this model is fine-tuned from the CodeLlama-7B base and operates efficiently on consumer-grade hardware. Its key capabilities include high accuracy in text-to-SQL tasks, particularly with complex queries like joins, while focusing on PostgreSQL syntax. SQLCoder-7B-2 is accessible via open-source platforms like Hugging Face and integrates with tools to facilitate user-friendly database querying interfaces.

Get Started

Model Specs

Released2024-02-05
Parameters7B
Context32k
ArchitectureDecoder Only