National audienceWe propose to create a high resolution spectral library in the optical and infrared range with PHOENIX model atmospheres code that can compute molecular lines in order to estimate stellar parameters. The chosen grid of stellar parameters will be as follows: δT eff =25K, δlogg = 0.05, δ[M/H] = 0.05, ranging between: T eff = [2500K, 4000K], logg = [4.0, −5.5], [M/H] = [−1, −1] but first, we need to calibrate on F to K stars. We present here the preliminary tests and calibration on the Sun and 18sco. The method yield respectively T eff = 5770 ± 3K, logg = 4.458 ± 0.006 and T eff = 5763 ± 3.5K, logg = 4.451 ± 0.00