NEW WEBSITE LAUNCH
Subscribe to our newsletter

code completion (code-gecko)

Based on Google’s PaLM 2 large language model, the company specifically trained Codey APIs to handle coding-related prompts, but it also trained the model to handle queries related to Google Cloud. The code completion API provides code autocompletion suggestions as you write code. The API uses the context of the code you’re writing to make its suggestions.

The code completion API supports the code-gecko model. Use the code-gecko model to help improve the speed and accuracy of writing code. The Codey APIs support a wide range of programming languages including C++, C#, Go, GoogleSQL, Java, JavaScript, Kotlin, PHP, Python, Ruby, Rust, Scala, Swift, and TypeScript. You can run with the API and in Generative AI Studio. Some common use cases for code completion include writing code faster, where the code-gecko model is employed to expedite the coding process by leveraging suggested code; and minimizing bugs in code, by utilizing code suggestions that are known to be syntactically correct to circumvent errors, thus reducing the risk of inadvertently introducing bugs that can arise during code creation.

Note: We have converted characters to tokens for the prices (based on the approximation of 4 characters per 1 token).

Input

$0.002 / 1k tokens

Output

$0.002 / 1k tokens

Licence

Model

Unit/Currency

code completion (code-gecko)
This website uses cookies to improve your experience. By using this website you agree to our Privacy Policy Policy.